gerrit.sh: actually verify running processes
When doing a gerrit.sh check, currently we only look for the pid file. If the service has crashed or something else has shut it down, we won't see it and since Gerrit usually is pretty critical we should make sure that we verify that we have a process running.
This commit is contained in:
parent
617aa397e3
commit
56ed4f6e33
|
@ -522,8 +522,10 @@ case "$ACTION" in
|
|||
echo
|
||||
|
||||
if test -f "$GERRIT_PID" ; then
|
||||
echo "Gerrit running pid="`cat "$GERRIT_PID"`
|
||||
exit 0
|
||||
if running "$GERRIT_PID" ; then
|
||||
echo "Gerrit running pid="`cat "$GERRIT_PID"`
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
exit 1
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue