[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[monit] monit status PID shows -1
From: |
Brian Downey |
Subject: |
[monit] monit status PID shows -1 |
Date: |
Thu, 1 May 2008 07:38:58 -0700 |
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
- [monit] monit status PID shows -1,
Brian Downey <=
- Re: [monit] monit status PID shows -1, Brian Downey, 2008/05/02
- Re: [monit] monit status PID shows -1, Jan-Henrik Haukeland, 2008/05/02
- Re: [monit] monit status PID shows -1, Martin Pala, 2008/05/02
- Re: [monit] monit status PID shows -1, Brian Downey, 2008/05/02
- Re: [monit] monit status PID shows -1, Martin Pala, 2008/05/02
- Re: [monit] monit status PID shows -1, David Cantrell, 2008/05/03
- Re: [monit] monit status PID shows -1, Brian Downey, 2008/05/05
- Re: [monit] monit status PID shows -1, Martin Pala, 2008/05/05