Monit should have the ability to not restart a service if it was shutdown deliberately
Issue #15
invalid
if the pid file is not there as a result of shutting it down it should simply not start it.
a check can be done for an exemption clause like:
only_if crashed
Comments (5)
-
repo owner -
repo owner - changed status to invalid
-
repo owner - changed component to 1. Monit
-
repo owner - changed component to Monit
-
repo owner - removed version
Removing version: 5.8 (automated comment)
- Log in to comment
The missing pidfile is not necessarily sign that the process was shutdown intentionally and should not be started. For example when the machine just started and Monit is supposed to start the process, the pidfile may be missing.
If you want to stop the process which is monitored by Monit, you should either disable the monitoring:
or stop it via Monit: