From 1aa352a48cf606c379da3e038c94b24b9c55eb56 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 17 Mar 2010 17:35:30 +0000 Subject: 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 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5780 ce84e21b-d406-0410-9b95-82705330c041 --- debian/bcfg2-server.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debian/bcfg2-server.init') 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 -- cgit v1.2.3-1-g7c22