docs/man/freshclam.1.in
a39ae468
 .TH "freshclam" "1" "February 12, 2007" "ClamAV @VERSION@" "Clam AntiVirus"
3697c428
 .SH "NAME"
 .LP 
 freshclam \- update virus databases
 .SH "SYNOPSIS"
 .LP 
 freshclam [options]
 .SH "DESCRIPTION"
 .LP 
f3a638e4
 freshclam is a virus database update tool for ClamAV.
3697c428
 .SH "OPTIONS"
 .LP 
 Freshclam reads its configuration from freshclam.conf. The settings can be overwritten with command line options.
 .TP 
 \fB\-h, \-\-help\fR
 Output help information and exit.
 .TP 
 \fB\-V, \-\-version\fR
 Print version number and exit.
 .TP 
 \fB\-v, \-\-verbose\fR
a36ba5a3
 Be verbose. This option causes freshclam to print much additional information.
3697c428
 .TP 
 \fB\-\-quiet\fR
 Be quiet \- output only error messages.
 .TP 
bcbe6ad7
 \fB\-\-no\-warnings\fR
 Don't print and log warnings.
 .TP 
3697c428
 \fB\-\-stdout\fR
f3a638e4
 Write all messages to stdout.
3697c428
 .TP 
 \fB\-l FILE, \-\-log=FILE\fR
f3a638e4
 Write download report to FILE.
3697c428
 .TP 
 \fB\-\-datadir=DIRECTORY\fR
a39ae468
 Install new database in DIRECTORY. The directory must be writable for the '@CLAMAVUSER@' user or unprivileged user running freshclam.
3697c428
 .TP 
 \fB\-u USER, \-\-user USER\fR
a39ae468
 Run as USER. By default (when started by root) freshclam drops privileges and operates as the '@CLAMAVUSER@' user.
3697c428
 .TP 
 \fB\-d, \-\-daemon\fR
 Run in a daemon mode. This option requires \-\-checks.
 \fB\-p FILE, \-\-pid=FILE\fR
f3a638e4
 Write daemon's pid to FILE.
3697c428
 .TP 
 \fB\-\-no\-dns\fR
 This option forces old non\-DNS verification method (without a TTL delay).
 .TP 
 \fB\-c #n, \-\-checks=#n\fR
 Check #n times per day for a new database. #n must be between 1 and 50.
 .TP 
 \fB\-\-daemon\-notify=/path/to/clamd.conf\fR
f3a638e4
 Notify the daemon about the new database. By default it reads a hardcoded config file but you can use a different one. Both local and TCP sockets are supported.
3697c428
 .TP 
932616b1
 \fB\-a IP, \-\-local\-address=IP\fR
 Use (local) IP for HTTP downloads. Useful for multi\-homed systems. If binding fails for whatever reason, a warning is issued and freshclam behaves like without this flag.
fc918fb5
 .TP 
3697c428
 \fB\-\-on\-error\-execute=COMMAND\fR
5a29f422
 Execute COMMAND if error occurred. Remember, that virus database freshness is the most important thing in anti\-virus system. With this option freshclam can alert you (eg. send SMS) when something is going wrong.
3697c428
 .TP 
 \fB\-\-on\-update\-execute=COMMAND\fR
5a29f422
 Execute COMMAND after successful update.
78675d75
 .TP 
 \fB\-\-on\-outdated\-execute=COMMAND\fR
9d1e45d4
 Execute COMMAND when freshclam reports outdated version. In the command string %v will be replaced by the new version number.
f3a638e4
 .TP 
 \fB\-\-list\-mirrors\fR
3e9d8b3e
 Print mirror details from mirrors.dat (cache file for the mirror manager).
2fb80ebc
 .TP
 \fB\-\-submit\-stats[=/path/to/clamd.conf]\fR
 Upload detection statistics to the ClamAV Project (see freshclam.conf(5):SubmitDetectionStats for more details). No database update will be performed. This option only works in the interactive mode.
3697c428
 .SH "EXAMPLES"
 .LP 
 .TP 
 (0) Download database to default directory:
 
 \fBfreshclam\fR
 .TP 
 (1) Download database to current directory:
 
 \fBfreshclam \-\-datadir=.\fR
 .TP 
 (2) Run as a daemon and check 2 times per day for new database:
 
 \fBfreshclam \-d \-c 2\fR
 .SH "RETURN CODES"
394a3b00
 Some return codes of freshclam can be overwritten with a built-in command EXIT_n which can be passed to \-\-on\-*\-execute, eg. \-\-on\-update\-execute=EXIT_1 will force freshclam to always return 1 after successful database update.
f487a82f
 .TP
745bb067
 0 : Database is up\-to\-date or successfully updated.
3697c428
 .TP 
 40: Unknown option passed.
 .TP 
 50: Can't change directory.
 .TP 
 51: Can't check MD5 sum.
 .TP 
 52: Connection (network) problem.
 .TP 
932616b1
 53: Can't unlink file.
3697c428
 .TP 
 54: MD5 or digital signature verification error.
 .TP 
 55: Error reading file.
 .TP 
 56: Config file error.
 .TP 
932616b1
 57: Can't create new file.
3697c428
 .TP 
 58: Can't read database from remote server.
 .TP 
 59: Mirrors are not fully synchronized (try again later).
 .TP 
a39ae468
 60: Can't get information about '@CLAMAVUSER@' user from /etc/passwd.
3697c428
 .TP 
 61: Can't drop privileges.
932616b1
 .TP 
5a29f422
 62: Can't initialize logger.
3697c428
 .SH "FILES"
 .LP 
 @CFGDIR@/freshclam.conf
 .SH "CREDITS"
 Please check the full documentation for credits.
 .SH "AUTHOR"
 .LP 
 Tomasz Kojm <tkojm@clamav.net>
 .SH "SEE ALSO"
 .LP 
021b6720
 freshclam.conf(5), clamd(8), clamd.conf(5), clamscan(1)