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.
 
> Here is the details:> monit 5.23.0> Centos 7> gnome: 3.14.2 
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.21.0:
[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

Mit TravelXtra profitieren Sie von 5% Rückvergütung auf den Reisepreis  – 
bekannte dt. Reiseanbieter und ein umfangreiches Reiseangebot wie im Reisebüro!
https://email.freenet.de/reisen/index.html
-- 
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to