--user
):
# touch /var/log/clam-update.log # chmod 600 /var/log/clam-update.log # chown clamav /var/log/clam-update.logNow you should edit the configuration file (usually freshclam.conf) and configure the UpdateLogFile directive to point the created log file (it's highly recommended). Optionally you may force the log file path with -l. Finally, to run freshclam in the daemon mode execute:
# freshclam -dThe other method is to use the cron daemon. You have to add the following line to the crontab of the root or clamav users:
N * * * * /usr/local/bin/freshclam --quietto check for a new database every hour. N should be a number between 1 and 59 of your choice. Please don't choose any multiple of 10, because there are already too many servers using those time slots. Proxy settings are only configurable via the configuration file (so you can setup proper permissions to protect your proxy password):
HTTPProxyServer myproxyserver.com HTTPProxyPort 1234 HTTPProxyUsername myusername HTTPProxyPassword mypass