On Apr 23, 2010, at 8:46 AM, Dennis Peterson wrote:
On 4/23/10 8:41 AM, Jim Preston wrote:
Just a question, but what time is freshclam running? Most of the
time a
majority of people run freshclam at the top of the hour which means
you
are in heavy competition for resources. I have mine set to run via
cron
at ten minutes after the hour.
Jim
You can easily do better regards lockstep with a simple randomizer
in your script:
# sleep random 900 seconds to prevent cron lockstep
# with other clients. Use any command line arg to force
# immediate update. ARG[1] is arbitrary string.
if [ -z "$1" ]; then
sleep $[ RANDOM % 900 ]
fi
I've lost track of who provided this but I found it via this list. I
added the test for ARG[] to allow me to launch it immediately by
including an argument to the command.
dp
Thanks Dennis!
Jim
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml