next up previous
Next: AMaViS - "Next Generation" Up: Installation Previous: Testing

Setting up auto-updating

freshclam is a tool, which automates the virus database update process for Clam Antivirus. You will find more information about it in the section 3.4. It may be used in two ways: Run freshclam (as root) without any parameters to check if it is working correctly. If everything is ok, create a log file in /var/log which should be owned by clamav:
	# touch /var/log/clam-update.log
	# chmod 644 /var/log/clam-update.log
	# chown clamav /var/log/clam-update.log
Now, you may run freshclam as a daemon:
	# freshclam -d -c 2 -l /var/log/clam-update.log
It will check for the new database 2 times a day. Please add this line to your startup scripts. The other way is to use the cron daemon. You have to add a similar line to the crontab of root or clamav:
0 8	* * *	/usr/local/bin/freshclam --quiet -l /var/log/clam-update.log
It will check for the new database daily at 8 am.



Tomasz Kojm 2002-08-22