|
From: | Aleksander Kamenik |
Subject: | Re: problem getting monit to recognize new PID after logroll of monitored app |
Date: | Tue, 03 Jul 2007 23:43:10 +0300 |
User-agent: | Thunderbird 2.0.0.4 (X11/20070615) |
Sennott, Mark wrote:
Every night I shut down our mongrel processes, archive the logs, and then restart them. As part of this, I shut down monit before hand and then start it back up after. Problem is that Monit says that the processes have NOT started and tries to restart them (even though I have verified that they are up and running before Monit starts). At first I thought it was the state file, so I make sure it is deleted when I shut down monit. Here is what I see in the logs:
Why do you shut down monit instead of just doing: # monit unmonitor mongrel-xxx # "do your stuff" # monit monitor mongrelAbout why it fails to detect them running. Are the PID files created instantly, maybe it takes more than 60 seconds for the PID files to be created by mongrel? Just guessing.
Regards, -- Aleksander Kamenik system administrator +372 6659 649 address@hidden Krediidiinfo AS http://www.krediidiinfo.ee/
[Prev in Thread] | Current Thread | [Next in Thread] |