monit-general
[Top][All Lists]
Advanced

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

Re: 2 copies started at once


From: Jan-Henrik Haukeland
Subject: Re: 2 copies started at once
Date: Fri, 27 Jul 2007 15:15:10 +0200

On 27. jul. 2007, at 14.22, Nick Upson wrote:

I use

set daemon 120

I wondered if it was related to using restart into the script, which,
standard behaviour, attempts to stop the pid and removes the pid file
anyway. I need this in case the process crashed as a simple "start"
stops if the pid file exists.
does monit distinguish between start and restart if the command?

Monit just execute the command given in 'start program' and does not parse, read or investigate the command at all. So when you use restart and stop as arguments to /opt/unb/bin/bs.sh monit does not consider those arguments at all. It just does a exec("/opt/unb/bin/ bs.sh 1 restart"). You should get someone to look at the script /opt/ unb/bin/bs.sh since the problem you have with two processes most certainly is a bug in the script.





reply via email to

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