Monit - stop service and stay stopped?
I have a daemon which runs via the usual init.d/service scripts.

I have monit running which ensures these daemons are restarted if they crash.

I have a request that 'service foo stop' should stop the deamon, and because it was explicitly stopped, not a crash, monit should not restart it. How can I achieve this with monit?

I could have the service script's stop() routine call 'monit unmonitor' but this seems circular and wrong.

Thanks,
Dave
Monit - stop service and stay stopped?
===

I have a daemon which runs via the usual init.d/service scripts.

I have monit running which ensures these daemons are restarted if they crash.

I have a request that 'service foo stop' should stop the deamon, and because it was explicitly stopped, not a crash, monit should not restart it. How can I achieve this with monit?

I could have the service script's stop() routine call 'monit unmonitor' but this seems circular and wrong.

Thanks,
Dave