On Mon, 2004-02-09 at 00:24, Fajar A. Nugraha wrote:
> Why? With entry in crontab
> 
> */1 *   * * * root      /usr/local/bin/clamdwatch.pl -q && ( /usr/bin/killall -9 
> clamd; rm -fr /var/amavis/clamd; /etc/init.d/clamav-daemon start 2>&1 )
> 
> Wouldn't it be the same as checking clamd every minute and restarting it 
> as necessary?

That's exactly what it's doing.

> Isn't that what daemontools do?

As far as I understand, daemontools only watches STD[IN|OUT|ERR] and the
pid to tell when it exits.  The code I wrote actually requests a virus
scan, so you know if everything is functioning.

I believe daemontools checks the process every 5 seconds or so.

Cheers,

Mike



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to