On Mon, 2004-02-16 at 15:11, Luke Scharf wrote:
> On Mon, 2004-02-16 at 16:35, Lionel Bouton wrote:
> > Once an hour is fine, but if you use crontab please add a once randomly 
> > chosen sleep between 0 and 3599 second before launching freshclam.
> > As lots of people using crontab put something like 0 * * * * ... The 
> > database mirrors have huge peaks of bandwidth usage each hour (and 
> > what's not good for the mirrors isn't good for the virus db availability).
> > 
> > Something like :
> > 
> > # echo $[ $RANDOM % 3600 ]
> > 0 * * * * sleep <value_given_above>; freshclam --quiet
> 
> Why didn't I think of that?!?  :-)
> 
> To add more randomness, I did it like so (on a Linux box where bash is
> always available):
>         SHELL=/bin/bash
>         0 * * * * sleep $[ $RANDOM % 3600 ] ; /usr/bin/freshclam --quiet
> 
> This does seem more polite than hitting it hard, right on the hour.

Excellent ideas! I will implement Luke's version.

        -Bill



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to