4
edits
(Setup via CLI: Services : added check for cron daemon) |
|||
Line 137: | Line 137: | ||
== Schedule updates through 'cron' == | == Schedule updates through 'cron' == | ||
A service should already be running for automatic updates, so that configuring updates via a cronjob are no longer necessary. | |||
To check the service run: | |||
<syntaxhighlight lang="shell"> | |||
systemctl status clamav-freshclam.service | |||
</syntaxhighlight> | |||
For config see <code>man freshclam.conf</code>. | |||
If the service is not available / can not be started and enabled on your system: | |||
Then run <code>sudo crontab -e -u clamav</code> to set up automatic updates. (These should be run as the <code>clamav</code> user.) Add the following line to update these at 13 past every hour: | Then run <code>sudo crontab -e -u clamav</code> to set up automatic updates. (These should be run as the <code>clamav</code> user.) Add the following line to update these at 13 past every hour: | ||
edits