monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Disable checks based on file


From: Kieran P
Subject: Disable checks based on file
Date: Tue, 9 Sep 2014 17:37:43 +1200

When I deploy code to production, I need to stop some tasks. But monit naturally restarts them before the deploy is finished. So I need a way to disable starts/restarts when a file is present. Is this possible yet?

e.g. 

check process delayed_job_0
  with pidfile /home/business/app/shared/pids/delayed_job.0.pid
  when file /home/business/app/tmp/deploying.txt not present
  start ...
  stop ...
  restart ...


Regards
Kieran

reply via email to

[Prev in Thread] Current Thread [Next in Thread]