|
From: | lutz . mader |
Subject: | RE: Re: Wrong PID |
Date: | Fri, 01 Sep 2017 17:08:10 +0200 |
User-agent: | freenetMail |
Hello Bhuvan Gupta,
I'm late, but I can't give you some help or hint.
I have no access to an Centos 7 system and do some additional testing on a Mac OS X, Linux and AIX system an everything works well.
The way you try to start an application via monit works well, unfortunately not on your prefered Centos 7 system.
Bye, Lutz
Verbose Log output, Linux/SLES 11 and Monit 5.210:
[CEST Sep 1 16:52:10] info : 'sample-test' start on user request
[CEST Sep 1 16:52:10] info : Monit daemon with PID 75595 awakened
[CEST Sep 1 16:52:10] info : Awakened by User defined signal 1
[CEST Sep 1 16:52:10] debug : 'sample-test' process test failed [pid=95537] -- No such process
[CEST Sep 1 16:52:10] info : 'sample-test' start: '/bin/sh -c cd /home/test/monit/conf; nohup sleep 1000 >/dev/null 2>&1 & echo $! >/home/test/monit/conf/sample-test.pid'
[CEST Sep 1 16:52:10] debug : 'sample-test' started
[CEST Sep 1 16:52:10] debug : 'sample-test' monitoring enabled
[CEST Sep 1 16:52:10] info : 'sample-test' start action done
[CEST Sep 1 16:52:10] debug : 'sample-test' process is running with pid 106421
[CEST Sep 1 16:52:10] debug : 'sample-test' process is running with pid 106421
[CEST Sep 1 16:52:10] debug : 'sample-test' zombie check succeeded
[Prev in Thread] | Current Thread | [Next in Thread] |