monit-general
[Top][All Lists]
Advanced

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

Executing a script when service fails to start


From: Donal McNamee
Subject: Executing a script when service fails to start
Date: Thu, 28 Sep 2006 18:59:07 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060909)

Hi all,
I'm trying to write a rule in monit.conf that will execute a script if a process has failed to start X number of times.
e.g. something like:

if 2 restarts in 2 cycles then exec "/bin/runme"

but that does not work.
Does anyone know of any other way I can execute a script if the process fails to start?

Cheers,
Donal.






reply via email to

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