Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
1  
Great answer, explains cron's basic structure in one go too :) – invert Dec 4 '09 at 8:55
    
Another possibility is to use /etc/cron.d, and it would be better because then you can run it at an arbitrary time. From clamav manual: "Please don't choose any multiple of 10, because there are already too many clients using those time slots." – user1338062 Oct 14 '15 at 6:15

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.