Search code examples
monit

Delay restart of processes in monit


Can I modify montrc so that it will not restart process immediately. The process has to be down for a full cycle before a restart is triggered. This is so I can keep my existing capistrano deploys.


Solution

  • you can use something like :

    check process x with pidfile /var/run/x.pid
       every y cycles
    

    or

    start program = "/etc/init.d/x start" with timeout 90 seconds