From 0ea13735861d189c20e135825a010800183593b7 Mon Sep 17 00:00:00 2001 From: Raghu Rao Date: Tue, 13 Aug 2013 15:54:01 -0500 Subject: [PATCH] Added pidfile argument to the "status" command of the initscripts for worker and verifier --- verifier/verifier.sh | 2 +- worker/stacktach.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/verifier/verifier.sh b/verifier/verifier.sh index 3d37719..c5bba7f 100755 --- a/verifier/verifier.sh +++ b/verifier/verifier.sh @@ -33,7 +33,7 @@ case "$1" in /sbin/start-stop-daemon --start --pidfile $PIDFILE --make-pidfile -b --exec $DAEMON $ARGS ;; status) - status_of_proc "$DAEMON" "verifier" && exit 0 || exit $? + status_of_proc -p "${PIDFILE}" "$DAEMON" "verifier" && exit 0 || exit $? ;; *) echo "Usage: verifier.sh {start|stop|restart|status}" diff --git a/worker/stacktach.sh b/worker/stacktach.sh index 271078b..81ba142 100755 --- a/worker/stacktach.sh +++ b/worker/stacktach.sh @@ -33,7 +33,7 @@ case "$1" in /sbin/start-stop-daemon --start --pidfile $PIDFILE --make-pidfile -b --exec $DAEMON $ARGS ;; status) - status_of_proc "$DAEMON" "stacktach" && exit 0 || exit $? + status_of_proc -p "{PIDFILE}" "$DAEMON" "stacktach" && exit 0 || exit $? ;; *) echo "Usage: stacktach.sh {start|stop|restart|status}"