Taking out the depends doesn't make a difference, it still stays in
that loop where it is spewing to the logs. 

I'm off-site today, I'll
look at this more tomorrow morning when I can pay attention to it rather
than to the lecture I'm supposed to be listening to. :-) 

On 07.12.2011
13:13, Martin Pala wrote: 

> Yes, it Eric is correct. The "monit stop
…" in the exec action cannot be combined in this case with the "depends
on …"
> 
> On Dec 7, 2011, at 6:50 PM, Eric Pailleau wrote:
> 
>> Hello,
I guess the problem is "/usr/bin/monit stop ospfd&& /usr/bin/monit
restart apache". ospdf is depending on apache, so it will be gracefully
restarted in right order when restart apache. launching a "monit stop
ospfd" will ask monit to stop by user request, so no restart will be
done. Is it correct, Martin ? 
>> 
>>> Here is what I have in my apache
and ospf configs now: check process apache with pidfile
/var/run/httpd.pid start program = "/etc/init.d/httpd start" stop
program = "/etc/init.d/httpd stop" if does not exist then exec
"/usr/bin/monit stop ospfd&& /usr/bin/monit restart apache" else if
recovered then exec "/usr/bin/monit monitor ospfd" if failed host
localhost port 80 protocol http and request "/" then restart if
children> 50 then restart if 2 restarts within 2 cycles then timeout
group server depends on tomcat check process ospfd with pidfile
/var/run/quagga/ospfd.pid start program = "/etc/init.d/ospfd start" stop
program = "/etc/init.d/ospfd stop" depends on apache depends on fcserver
depends on mysql depends on tomcat group network
>> -- To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general [1]
> 
> --
> To
unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general
[2]

-- 

Dan Rich  
http://www.employees.org/~drich/ [3]
 "Step up to
red alert!" "Are you sure, sir?
 It means changing the bulb in the
sign..."
 - Red Dwarf (BBC)   

Links:
------
[1]
https://lists.nongnu.org/mailman/listinfo/monit-general
[2]
https://lists.nongnu.org/mailman/listinfo/monit-general
[3]
http://www.employees.org/~drich/
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to