gerrit.sh: Fix exit status codes to be LSB compliant

Fix exit status codes according to [1].

[1] http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

Change-Id: Ic26def7c815eba42aa6f1d2cf4578f224d57fa8d
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2012-12-28 11:37:58 +01:00
parent 3f2c1d5013
commit f9a7dcc2c7

View File

@@ -394,7 +394,7 @@ case "$ACTION" in
if test -f "$GERRIT_PID" ; then
if running "$GERRIT_PID" ; then
echo "Already Running!!"
exit 1
exit 0
else
rm -f "$GERRIT_PID" "$GERRIT_RUN"
fi
@@ -503,7 +503,7 @@ case "$ACTION" in
if test -f "$GERRIT_PID" ; then
if running "$GERRIT_PID" ; then
echo "Already Running!!"
exit 1
exit 0
else
rm -f "$GERRIT_PID"
fi
@@ -533,7 +533,7 @@ case "$ACTION" in
exit 0
fi
fi
exit 1
exit 3
;;
*)