Merge "gerrit.sh: actually verify running processes"

This commit is contained in:
Shawn Pearce
2010-11-26 17:52:30 -08:00
committed by Android Code Review

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