diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2010-03-17 17:35:30 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-03-18 22:04:25 -0500 |
commit | 1aa352a48cf606c379da3e038c94b24b9c55eb56 (patch) | |
tree | 95a6a12ac7b49ee788815c02142a72ce04edeff6 /debian/bcfg2-server.init | |
parent | 98aae189f7e4e28518f9e8b34d1c06765fc93315 (diff) | |
download | bcfg2-1aa352a48cf606c379da3e038c94b24b9c55eb56.tar.gz bcfg2-1aa352a48cf606c379da3e038c94b24b9c55eb56.tar.bz2 bcfg2-1aa352a48cf606c379da3e038c94b24b9c55eb56.zip |
bcfg2-server.init: Fix 'service bcfg2-server status' results (Patch from Lee Loucks)
From Ticket #864:
Bcfg2 v1.0.1-1 on a RHEL system. running /etc/init.d/bcfg2-server
status returns a "is running" method whether bcfg2-server is running
or not.
To fix this adding a the "-o %PPID" flag to the pidof call eliminates
the parent process from pidof's process list.
Signed-off-by: Sol Jerome <solj@ices.utexas.edu>
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5780 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2-server.init')
-rw-r--r-- | debian/bcfg2-server.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/bcfg2-server.init b/debian/bcfg2-server.init index fad18dc42..f2b1161e9 100644 --- a/debian/bcfg2-server.init +++ b/debian/bcfg2-server.init @@ -71,7 +71,7 @@ stop () { status () { # Inspired by redhat /etc/init.d/functions status() call - PID=$(pidof -x $BINARY) + PID=$(pidof -x $BINARY -o %PPID) if [ -n "$PID" ]; then echo "$BINARY (pid $PID) is running..." return 0 |