Monit should have the ability to not restart a service if it was shutdown deliberately

Issue #15 invalid
Former user created an issue

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)

  1. Tildeslash repo owner

    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:

    monit unmonitor <service>
    

    or stop it via Monit:

    monit stop <service>
    
  2. Log in to comment