[Top][All Lists]

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

Re: monit5.5: Problem with process restart

From: Dennis Drew
Subject: Re: monit5.5: Problem with process restart
Date: Thu, 6 Dec 2012 05:32:07 -0800 (PST)

I have had similar problems... had to quit wasting time and revert to other methods.

From: Martin Pala <address@hidden>
To: This is the general mailing list for monit <address@hidden>
Sent: Thursday, December 6, 2012 3:42 AM
Subject: Re: monit5.5: Problem with process restart

Please run monit in verbose mode, rerun the test and check monit log.


On Dec 6, 2012, at 12:13 AM, shiva rkreddy <address@hidden> wrote:

> Hello there,
> Here is the problem scenario:
> 1. A process is running in  while(1) loop with sleep. Process name: whileTest
> 2. Once the process is started a pid is captured rom ps output  and written to
>    the pid file /var/run/
> 3. After the process has started, monit is started with: monit -c ./monitrc
> ***
> set daemon  30              # check services at 30 second intervals
> check process whileTest with pidfile /var/run/
>      start program = "/tmp/whileTest &"
> ***
> 4. Now kill the whileTest process using: kill -9 <PID>
> 5. Make sure that original whileTest process got killed.
> 6. Wait more than 30 seconds and verify whether a new whileTest process has started.
> I could see that the process has never restarted.
> Any ideas on what could be missing here?
> Appreciate your help.
> Thanks,
> Reddy
> --
> To unsubscribe:

To unsubscribe:

reply via email to

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