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.
Regards,
Martin
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/while.pid
> 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/while.pid
> 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:
>
https://lists.nongnu.org/mailman/listinfo/monit-general--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general