[Top][All Lists]

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

Re: Disable checks based on file

From: Martin Pala
Subject: Re: Disable checks based on file
Date: Tue, 9 Sep 2014 07:50:48 +0200

You can do "monit unmonitor delayed_job_0" when the deploy starts and "monit 
monitor delayed_job_0" when it finished.


On 09 Sep 2014, at 07:37, Kieran P <address@hidden> wrote:

> 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/
>   when file /home/business/app/tmp/deploying.txt not present
>   start ...
>   stop ...
>   restart ...
> Regards
> Kieran
> --
> To unsubscribe:

reply via email to

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