monit-general
[Top][All Lists]
Advanced

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

can monit 5.2.5 execute a script when it times out?


From: Michael, Jason
Subject: can monit 5.2.5 execute a script when it times out?
Date: Mon, 6 Jun 2011 21:05:45 -0400

I know I can do

 

If 5 restarts in 5 cycles then timeout

 

And also

 

If 5 restarts in 5 cycles then exec "/path/to/cool/script"

 

But I can't figure out how to do this:

 

If 5 restarts in 5 cycles then timeout and exec "/path/to/cool/script"

 

It seems like monit is the logical place to put cleanup scripts for when a process can't be restarted.  How can I do this?

 

TIA,

Jason


reply via email to

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