henry j. mason said:
>       hi clamav-users;

>       any ideas? i'm thinking about cobbling together something
>       in perl to run from a cron job.
>
>       tia
>       henry

Screw the daemon - run it out of cron.

Script: freshclam.sh

#!/bin/bash
# run freshclam at random intervals 3 times/hour

sleep $[ RANDOM % 900 ]

/usr/local/bin/freshclam \
  --quiet \
  --daemon-notify=/usr/local/etc/clamd.conf
exit

Crontab:
0,20,40 * * * * /usr/local/bin/freshclam.sh

dp
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to