monit-general
[Top][All Lists]
Advanced

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

[monit] Ruby process and pid file


From: Roberto Druetto
Subject: [monit] Ruby process and pid file
Date: Wed, 19 Nov 2008 16:53:32 +0000

Hi guys,
 I'm trying to monitor a ruby process. I followed this guide:
http://mmonit.com/wiki/Monit/FAQ#pidfile in order to create the pid
file, but I'm a little bit confused.
In the FAQ they say to create the pid file in this way: echo $$ >
/var/run/xyz.pid; but at that stage the pid number I get is the one of
the bash script and not the one of the ruby process. So I get the
wrong process monitored.

Another thing: if I try to stop&start the service, it seems that it
tries to launch the bash file twice, so 2 processes at the end of the
restart.

What am I doing wrong?

Thanks,
Roberto




reply via email to

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