docs/man/freshclam.1.in
3708f991
 .\" Manual page created by Tomasz Kojm, 20020415
e483f51a
 .TH "freshclam" "1" "May 11, 2005" "Tomasz Kojm" "Clam AntiVirus"
3708f991
 .SH "NAME"
 .LP 
 freshclam \- update virus databases
 .SH "SYNOPSIS"
 .LP 
 freshclam [options]
 .SH "DESCRIPTION"
 .LP 
 freshclam updates the virus database. It's a part of the Clam AntiVirus package. It requires an Internet connection.
 .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
 Be verbose. This option causes freshclam to print many additional informations.
 .TP 
 \fB\-\-quiet\fR
 Be quiet \- output only error messages.
 .TP 
 \fB\-\-stdout\fR
 Write all messages to the standard output (stdout), instead of the standard error output (stderr).
 .TP 
 \fB\-l FILE, \-\-log=FILE\fR
 Save download report in FILE.
 .TP 
 \fB\-\-datadir=DIRECTORY\fR
e82a5185
 Install new database in DIRECTORY. The directory must be writable for the 'clamav' user or unprivileged user running freshclam.
3708f991
 .TP 
 \fB\-u USER, \-\-user USER\fR
 Run as USER. By default (when started by root) freshclam drops privileges and works as the 'clamav' user.
 .TP 
 \fB\-d, \-\-daemon\fR
 Run in a daemon mode. This option requires \-\-checks.
 \fB\-p FILE, \-\-pid=FILE\fR
 Save daemon's pid in FILE.
 .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
 Notify the daemon about the new database. By default it reads a hardcoded config file but you can use an another one. Both local and TCP sockets are supported.
 .TP 
e483f51a
 \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.
0539b2a8
 .TP 
3708f991
 \fB\-\-on\-error\-execute=COMMAND\fR
e82a5185
 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.
3708f991
 .TP 
 \fB\-\-on\-update\-execute=COMMAND\fR
e82a5185
 Execute COMMAND after successful update.
d18eac06
 .TP 
 \fB\-\-on\-outdated\-execute=COMMAND\fR
 Execute COMMAND when freshclam reports outdated version. In the command string %v will be replaced by the new version number.
3708f991
 .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"
e82a5185
 0 : Database successfully updated.
3708f991
 .TP 
 1 : Database is up\-to\-date.
 .TP 
 40: Unknown option passed.
 .TP 
 50: Can't change directory.
 .TP 
 51: Can't check MD5 sum.
 .TP 
 52: Connection (network) problem.
 .TP 
e483f51a
 53: Can't unlink file.
3708f991
 .TP 
 54: MD5 or digital signature verification error.
 .TP 
 55: Error reading file.
 .TP 
 56: Config file error.
 .TP 
e483f51a
 57: Can't create new file.
3708f991
 .TP 
 58: Can't read database from remote server.
 .TP 
 59: Mirrors are not fully synchronized (try again later).
 .TP 
 60: Can't get information about clamav user from /etc/passwd.
 .TP 
 61: Can't drop privileges.
e483f51a
 .TP 
e82a5185
 62: Can't initialize logger.
3708f991
 .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 
 clamd(8), clamdscan(1), clamscan(1), sigtool(1), clamd.conf(5)