|
From: | Aleksander Kamenik |
Subject: | Re: [monit] Problem when monit restart services without a pid file |
Date: | Wed, 28 Nov 2007 09:40:41 +0200 |
User-agent: | Thunderbird 2.0.0.5 (X11/20070727) |
William Tisäter wrote:
Why I need to remove the pid is because I have a service running various checks on my services.When a service control fails I want monit to fail too, so I remove the pid file
How about "echo 12345 > /path/to/pidfile" instead of "rm -f /path/to/pidfile"? Although I still don't quite understand your setup.
Regards, -- Aleksander Kamenik system administrator +372 6659 649 address@hidden Krediidiinfo AS http://www.krediidiinfo.ee/
[Prev in Thread] | Current Thread | [Next in Thread] |