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:
Ian Kumlien 2010-11-26 16:06:58 +01:00
parent 617aa397e3
commit 56ed4f6e33
1 changed files with 4 additions and 2 deletions

View File

@ -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
;;