Merge pull request #169 from raghuvrao/master

Use the pidfiles while checking status of worker/verifier
This commit is contained in:
mendeni 2013-08-14 08:26:48 -07:00
commit e04d85791b
2 changed files with 2 additions and 2 deletions

View File

@ -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}"

View File

@ -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}"