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: Patrick Burns
Subject: Re: [PATCH] Running an external script with EXEC on a timeout
Date: Mon, 28 Feb 2005 09:26:35 +1100

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.
-- 
  Patrick Burns
  address@hidden





reply via email to

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