Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Ubuntu 9.10

Silly question time: When the clamav-freshclam service is running, how often is clamav checking for updates? Or do I have to manually run freshclam via a cronjob?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

how often is clamav checking for updates?

Unless you setup a cronjob it will not check for updates.

Do I have to manually run freshclam via a cronjob?

The purpose of a cronjob is to automate the process. You can decide to run it in the following:

/etc/cron.daily

/etc/cron.hourly

/etc/cron.weekly

/etc/cron.monthly

I recommend cron.daily and set it up via a shell script.

sudo gedit /etc/cron.daily/freshclam.sh

#!/bin/sh

/usr/bin/freshclam --quiet

This will now run with all your other cron.daily jobs

Save and exit

chmod 755 /etc/cron.daily/freshclam.sh

share|improve this answer
    
Great answer, explains cron's basic structure in one go too :) –  invert Dec 4 '09 at 8:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.