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: Gael Pourriel
Subject: Re: [PATCH] Running an external script with EXEC on a timeout
Date: Mon, 28 Feb 2005 16:34:29 +0100

Hi Patrick, just tested your patch with monit 4.4, it works fine,
thanks for this I can now get ride of my dodgy trick. However if you
use Heartbeat in the way it says in the docs (i.e. Monit running in
inittab and monitoring Heartbeat daemon) you will find that stopping
Heartbeat doesn't reset the timeout flag for the service, since monit
hasn't been restarted.

Gael

On Mon, 28 Feb 2005 09:26:35 +1100, Patrick Burns <address@hidden> 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.
> --
>   Patrick Burns
>   address@hidden
> 
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>




reply via email to

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