|
|
|
quick question on freshclam
|
Previous Topic
Next Topic
|
| Message |
Author |
Posted: Tue Mar 09, 2010 6:56 pm Subject: quick question on freshclam |
|
|
Tom Shaw
|
|
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.
Now, I can easily put a shell script between launchd and freshclam to
solve this (in fact I have) but it would be much cleaner if I could
tell freshclam to return 0 for both "good" events, eg updated and no
need to update."
Anyone got an idea on how to do this?
Tom
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml |
| Back to top |
|
 |
Posted: Tue Mar 09, 2010 7:32 pm Subject: quick question on freshclam |
|
|
Chuck Swiger
|
|
On Mar 9, 2010, at 3:55 PM, Tom Shaw wrote:
| Quote: | 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
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml |
| Back to top |
|
 |
Posted: Thu Mar 11, 2010 4:51 pm Subject: quick question on freshclam |
|
|
Jim Preston
|
|
On Mar 9, 2010, at 5:32 PM, Chuck Swiger wrote:
| Quote: | On Mar 9, 2010, at 3:55 PM, Tom Shaw wrote:
| Quote: | 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 |
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|