On Mar 9, 2010, at 5:32 PM, Chuck Swiger wrote:
On Mar 9, 2010, at 3:55 PM, Tom Shaw wrote:
I want to change how I run freshclam on OSX from running as a
deamon to running periodically using launchd. Unfortunately,
freshclam's returning of 1 when no updates were required causes
issues with launchd since it thinks freshclam exited abnormally and
attempts to respawn.
It looks like --on-update-execute=EXIT_0 is almost what you want,
except it's reversed; you want an --on-no-update-execute flag. :-)
On the other hand, freshclam normally uses less than 1MB of RAM, so
I don't see what you are gaining by making changes here. Use
freshclam as a daemon, and have launchd monitor it and restart it if
it ever goes away.
Regards,
--
-Chuck
Or you could just run it has a cron task. This is what I do on my
Linux box and have it execute x number of times a day at some offset
from the hour to minimize collision with other users (tends to timeout
if done on the top of the hour)
Jim
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml