|
|
|
@ -283,7 +283,10 @@ int freshclam(struct optstruct *opt) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bigsleep = 24 * 3600 / checks; |
|
|
|
|
daemonize(); |
|
|
|
|
|
|
|
|
|
if(!cfgopt(copt, "Foreground")) |
|
|
|
|
daemonize(); |
|
|
|
|
|
|
|
|
|
if (optc(opt, 'p')) { |
|
|
|
|
pidfile = getargc(opt, 'p'); |
|
|
|
|
} else if ((cpt = cfgopt(copt, "PidFile"))) { |
|
|
|
@ -420,7 +423,6 @@ void daemonize(void) |
|
|
|
|
|
|
|
|
|
void help(void) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
mprintf_stdout = 1; |
|
|
|
|
|
|
|
|
|
mprintf("\n"); |
|
|
|
@ -437,6 +439,7 @@ void help(void) |
|
|
|
|
mprintf(" --config-file=FILE read configuration from FILE.\n"); |
|
|
|
|
mprintf(" --log=FILE -l FILE log into FILE\n"); |
|
|
|
|
mprintf(" --daemon -d run in daemon mode\n"); |
|
|
|
|
mprintf(" --foreground -f run daemon in foreground\n"); |
|
|
|
|
mprintf(" --pid=FILE -p FILE save daemon's pid in FILE\n"); |
|
|
|
|
mprintf(" --user=USER -u USER run as USER\n"); |
|
|
|
|
mprintf(" --no-dns force old non-DNS verification method\n"); |
|
|
|
|