monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Running an external script with EXEC on a timeout


From: Jan-Henrik Haukeland
Subject: Re: [PATCH] Running an external script with EXEC on a timeout
Date: Wed, 9 Mar 2005 23:42:24 +0100

Patrick, if you care to build on your own patch and go one extra mile and implement this feature described here: http://www.tildeslash.com/monit/doc/next.php#20 I'm sure we will happily accept this patch. What do you think, will you give it a stab?

Patrick Burns wrote:
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.

--
Jan-Henrik Haukeland
Mobil +47 97141255





reply via email to

[Prev in Thread] Current Thread [Next in Thread]