That's a good system. I considered something similar myself at first,
I.e. writing some sort of count to a file at every restart and
periodically checking/clearing it. However it's obviously much better
to
have this functionality built-in to monit. Is there any way we can put
this patch up for argument on the developer's list? I'd definitely like
to see something similar in the CVS.
Perhaps I should make a diff against the development version (rather
than stable.) It would also be good to get some people testing this to
make sure it works properly.
On Sun, 27 Feb 2005 19:59:55 +0100, "Gael Pourriel"
<address@hidden> said:
Basically whenever I start apache using the apachectl script I also
add a byte to a temp file (echo >> /tmp/apache_restart), then I use
another test in monit to check this temp file and exec "reboot" when
it reach a given size (10 bytes would mean 10 restart). However I've
also got another check that deletes the file is the timestamp if over
a given period.