> My watch dog code is a bit of a mess, but it uses LWP::*,
> or lwp-request to query the server, test for expected
> output, and if it takes too long restart the server. If
> too many subsequent restarts fail to work, and apache is
> still not responding in a timely manner, send an
> email to the administrator.
>
> Some code is posted below that you can adapt for you use.
Wow! That's quite a script :)
I'm using some simpler one (only for httpd), see the second watchdog at:
http://perl.apache.org/guide/control.html#Monitoring_the_Server_A_watchdo
[code snipped]
_______________________________________________________________________
Stas Bekman mailto:[EMAIL PROTECTED] www.singlesheaven.com/stas
Perl,CGI,Apache,Linux,Web,Java,PC at www.singlesheaven.com/stas/TULARC
www.apache.org & www.perl.com == www.modperl.com || perl.apache.org
single o-> + single o-+ = singlesheaven http://www.singlesheaven.com