Doug Hardie wrote:
have encountered quite a few situations in the last month where clamav just stopped working properly and had to be manually restarted.
I had the same problem with spamass-milter a while back. What you need is a "watchdog" script, something like this...
#!/bin/sh PATH=/bin:/usr/bin
PID=`ps -ax | grep clmilter | grep -v grep | cut -c 1-5 | tr -d " "`
if [ ! $PID ] then sh `grep /usr/local/bin/clamd /etc/rc.local` fi
Call the script every 5 minutes from cron.
This is off the top of my head and written with FreeBSD in mind. You'd need to adjust and test, of course. It's just a suggestion to get you started.
_______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
