Browse code

bb12043, bb12302: Adds --foreground freshclam option to help and manpage, some other documentation tweaks.

Micah Snyder (micasnyd) authored on 2019/07/06 03:53:43
Showing 5 changed files
... ...
@@ -48,6 +48,9 @@ Run in a daemon mode. Defaults to 12 checks per day unless otherwise specified b
48 48
 \fB\-p FILE, \-\-pid=FILE\fR
49 49
 Write daemon's pid to FILE.
50 50
 .TP
51
+\fB\-F, \-\-foreground\fR
52
+Don't fork into background (for use in daemon mode).
53
+.TP
51 54
 \fB\-u USER, \-\-user USER\fR
52 55
 Run as USER. By default (when started by root) freshclam drops privileges and operates as the '@CLAMAVUSER@' user.
53 56
 .TP
... ...
@@ -206,12 +206,12 @@ Default: 60
206 206
 \fBSafeBrowsing BOOL\fR
207 207
 This option enables support for Google Safe Browsing. When activated for the first time, freshclam will download a new database file (safebrowsing.cvd) which will be automatically loaded by clamd and clamscan during the next reload, provided that the heuristic phishing detection is turned on. This database includes information about websites that may be phishing sites or possible sources of malware. When using this option, it's mandatory to run freshclam at least every 30 minutes. Freshclam uses the ClamAV's mirror infrastructure to distribute the database and its updates but all the contents are provided under Google's terms of use. See https://support.google.com/code/answer/70015 and https://www.clamav.net/documents/safebrowsing for more information.
208 208
 .br
209
-Default: disabled
209
+Default: no
210 210
 .TP
211 211
 \fBBytecode BOOL\fR
212 212
 This option enables downloading of bytecode.cvd, which includes additional detection mechanisms and improvements to the ClamAV engine.
213 213
 .br
214
-Default: enabled
214
+Default: yes
215 215
 .SH "FILES"
216 216
 .LP
217 217
 @CFGDIR@/freshclam.conf
... ...
@@ -190,13 +190,13 @@ DatabaseMirror database.clamav.net
190 190
 # terms of use. See https://www.google.com/transparencyreport/safebrowsing
191 191
 # and https://www.clamav.net/documents/safebrowsing
192 192
 # for more information.
193
-# Default: disabled
193
+# Default: no
194 194
 #SafeBrowsing yes
195 195
 
196 196
 # This option enables downloading of bytecode.cvd, which includes additional
197 197
 # detection mechanisms and improvements to the ClamAV engine.
198
-# Default: enabled
199
-#Bytecode yes
198
+# Default: yes
199
+#Bytecode no
200 200
 
201 201
 # Include an optional signature databases (opt-in).
202 202
 # This option can be used multiple times.
... ...
@@ -157,6 +157,7 @@ static void help(void)
157 157
     printf("    --daemon             -d              Run in daemon mode\n");
158 158
     printf("    --pid=FILE           -p FILE         Save daemon's pid in FILE\n");
159 159
 #ifndef _WIN32
160
+    printf("    --foreground         -F              Don't fork into background (for use in daemon mode).\n");
160 161
     printf("    --user=USER          -u USER         Run as USER\n");
161 162
 #endif
162 163
     printf("    --no-dns                             Force old non-DNS verification method\n");
... ...
@@ -190,13 +190,13 @@ DatabaseMirror database.clamav.net
190 190
 # terms of use. See https://transparencyreport.google.com/safe-browsing/
191 191
 # and https://www.clamav.net/documents/safebrowsing
192 192
 # for more information.
193
-# Default: disabled
193
+# Default: no
194 194
 #SafeBrowsing yes
195 195
 
196 196
 # This option enables downloading of bytecode.cvd, which includes additional
197 197
 # detection mechanisms and improvements to the ClamAV engine.
198
-# Default: enabled
199
-#Bytecode yes
198
+# Default: yes
199
+#Bytecode no
200 200
 
201 201
 # Include an optional signature databases (opt-in).
202 202
 # This option can be used multiple times.