diff options
-rwxr-xr-x | contrib/bugzilla-queue.rhel | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/bugzilla-queue.rhel b/contrib/bugzilla-queue.rhel index fe107b8ba..b7a39fe81 100755 --- a/contrib/bugzilla-queue.rhel +++ b/contrib/bugzilla-queue.rhel @@ -70,7 +70,7 @@ usage () start () { if [ -f "$PIDFILE" ]; then - checkpid `cat $PIDFILE` && return 0 + checkpid `cat $PIDFILE` && return 2 fi echo -n "Starting $NAME: " touch $PIDFILE @@ -85,7 +85,7 @@ start () stop () { - [ -f /var/lock/subsys/$NAME ] || return 0 + [ -f /var/lock/subsys/$NAME ] || return 2 echo -n "Killing $NAME: " killproc $NAME echo @@ -100,7 +100,7 @@ restart () condrestart () { - [ -e /var/lock/subsys/$NAME ] && restart || return 0 + [ -e /var/lock/subsys/$NAME ] && restart || return 2 } @@ -110,7 +110,7 @@ case "$1" in status) $BIN -p $PIDFILE -n $NAME check; RETVAL=$?;; restart) restart; RETVAL=$? ;; condrestart) condrestart; RETVAL=$? ;; - *) usage ; RETVAL=2 ;; + *) usage ;; esac exit $RETVAL |