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: Nick Upson
Subject: Re: start but no stop wanted
Date: Tue, 10 Jul 2007 13:05:13 +0100

The output from time shows that the script takes negligable time, so I
can only assume it's monit waiting to find out that the process is
shutdown, which isn't going to happen

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





reply via email to

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