Merge pull request #169 from raghuvrao/master
Use the pidfiles while checking status of worker/verifier
This commit is contained in:
commit
e04d85791b
@ -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}"
|
||||
|
@ -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}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user