Re: Monit not restarting a service reliably

2019-06-03 Thread Jan Rychter
Hi, Thanks for the information, this is exactly what I needed. This setting will make monit work for me again :-) best regards, --Jan > On 2019-06-03, at 08:37, mart...@tildeslash.com wrote: > > Hi, > > since monit 5.16.0, the exec action is executed only on a state change. In > your case

Re: Monit not restarting a service reliably

2019-06-03 Thread mart...@tildeslash.com
Hi, since monit 5.16.0, the exec action is executed only on a state change. In your case the service didn't transition to the "succeeded" state, so the exec action wasn't repeated. If you want to retry the exec action if the service remains in failure state, you can use the "repeat" option.

Monit not restarting a service reliably

2019-05-31 Thread Jan Rychter
Hi, I'm looking for help, because I can't figure out what I'm doing wrong. I have a simple monit setup, which is supposed to monitor a web server and restart it if anything seems wrong. This seems to work but not always. Monit does restart the service, but on subsequent failures it just