Hi All,

Wondering if there is anything I can do about a "problem" we're experiencing with a service being monitored by a pid file.

When running 'monit status', our service comes back showing '-1' as the PID and the Parent PID:

Process 'xci-poll'
 status                 running
 pid                    -1
 parent pid             -1
 uptime                 16m
 data collected         Thu May 1 10:32:49 2008


Here is the service definition:

check process xci-poll with pidfile /var/run/xci-poll.pid
 start program = "/etc/init.d/xci-poll start"
 stop program = "/etc/init.d/xci-poll stop"
 if changed pid then restart

Other than showing -1, monit watches and manages the service perfectly. The only thing semi-unusual is the init.d script exec's to the actual binary, which then becomes owned by init(1). Standard forking stuff, from what I remember.

Thanks for any insight!
-Brian



--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to