monit-general
[Top][All Lists]
Advanced

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

RE: start but no stop wanted


From: Sennott, Mark
Subject: RE: start but no stop wanted
Date: Mon, 9 Jul 2007 09:21:10 -0500

The better way to do that is with groups. 

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of Nick Upson
Sent: Monday, July 09, 2007 9:15 AM
To: This is the general mailing list for monit
Subject: Re: start but no stop wanted

The main reason I don't want it to stop is that I do want to be able to
do

monit stop all

to stop all the processes it is monitoring (a long list) but some should
not actually stop

On 09/07/07, Cryer,Phil <address@hidden> wrote:
> If you are not the intended recipient of this message (including 
> attachments), or if you have received this message in error, 
> immediately notify us and delete it and any attachments.  If you no 
> longer wish to receive e-mail from Edward Jones, please send this 
> request to address@hidden  You must include the e-mail 
> address that you wish not to receive e-mail communications. For 
> important additional information related to this e-mail, visit 
> www.edwardjones.com/US_email_disclosure
>
> -----Original Message-----
>
>
> From: address@hidden
> [mailto:address@hidden 
> On Behalf Of Nick Upson
> Sent: Monday, July 09, 2007 8:08 AM
> To: address@hidden
> Subject: start but no stop wanted
>
> I'm trying to setup a config where monit watches a process and starts 
> it on failure but does not stop it.
>
> The config I have looks something like
>
> check process ntpd with pidfile "/var/run/ntpd.pid"
>    start program = "/opt/unb/bin/ntpd.sh start &"
>    stop program = "/bin/true stop &"
>
> the problems I have are:
>
> a) the start command takes ages before moving on to the next entry in 
> the file, even when ntpd is already running so there is nothing to do
>
> How long does it take when you run the command by hand? Time it like
> this:
>
> time ./opt/unb/bin/ntpd.sh stop
>
> b) the stop command is even slower
>
> Same as above.
>
> Also, why do you want it to stop it, if you said above that you didn't

> want it to stop it?  Also, what is the purpose of the &?  If it's 
> taking a long time it's hanging on something before that, otherwise it

> should drop you right back after it passes it's command.
>
>
> P
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>
>
> --
> To unsubscribe:
> http://lists.nongnu.org/mailman/listinfo/monit-general
>


--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general




reply via email to

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