Re: Restarting after x cycles of downtime

2015-03-05 Thread Martin Pala
Hi, first - when the process is monitored by Monit, you should either restart it gracefully via Monit or at least disable the monitoring before manual actions: Either: monit restart jetty8 # restart via Monit Or: monit unmonitor jetty8 # disable monitoring

Re: Restarting after x cycles of downtime

2015-03-05 Thread Weedy
On Mar 4, 2015 9:36 PM, Rahul Amaram rahul.ama...@vizury.com wrote: I would like to use something like for X cycles feature. Where in monit does not attempt restart of jetty8 (or send alert) unless it finds jetty8 down for X consecutive cycles. I have tried the following syntax but it is invalid.

Restarting after x cycles of downtime

2015-03-04 Thread Rahul Amaram
Hi, I am facing a particular issue. I have defined a monit configuration for jetty8 as below: check process jetty8 with pidfile /var/run/jetty8.pid start program = /etc/init.d/jetty8 start stop program = /etc/init.d/jetty8 stop Now, the problem is at times, when I restart jetty8 manually,