Using monit 5.23.0 on centos 7
On Sat, Aug 26, 2017 at 3:14 PM, Bhuvan Gupta wrote:
> Hello all,
>
> I have written check command like
>
> check process sample-test with pidfile /tmp/sample-test.pid
> start = "/bin/sh -c 'cd /tmp ; nohup sleep 1000 1>/tmp/sample-test.log
> 2>/tmp/sample-test
Thanks for putting in time.
As suggest by the community i have moved to using separate shell files,
which work great :)
Thanks
On Fri, Sep 1, 2017 at 8:38 PM, wrote:
> 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 a
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 app
Lutz Mader,
Thanks for the reply. Yes i understand that using separate script file is
good idea.
But just curious to know how things work and what might have gone wrong.
Here is the details:
monit 5.23.0
Centos 7
gnome: 3.14.2
On Sun, Aug 27, 2017 at 1:20 AM, Lutz Mader wrote:
> Hello,
> I try
Hello,
I try to check your sample based on Monit 5.19.0 on a Mac OS X system
and everything works well.
Which operating system or monit version do you use?
Your sample works well.
check process sample-test with pidfile /tmp/sample-test.pid
start = "/bin/sh -c 'cd /tmp; nohup sleep 1000 1>/tmp/
I think you would have a better time writing a script. Inside script put
your commands.
start = "/tmp/script.sh" with timeout 10
On Sat, Aug 26, 2017 at 5:44 AM, Bhuvan Gupta wrote:
> Hello all,
>
> I have written check command like
>
> check process sample-test with pidfile /tmp/sample-test
Hello all,
I have written check command like
check process sample-test with pidfile /tmp/sample-test.pid
start = "/bin/sh -c 'cd /tmp ; nohup sleep 1000 1>/tmp/sample-test.log
2>/tmp/sample-test.log & echo $! > /tmp/sample-test.pid'" with timeout 10
seconds
stop = "/bin/sh -c 'kill -9 `c