From 2a565b2c1fb2fc0002b2e1b7a174da9e7bd150ac Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Fri, 16 Nov 2012 16:22:32 +0100 Subject: Bug 556195: bugzilla-queue.rhel initscript returns wrong result code when the daemon isn't running r=justdave a=LpSolit --- contrib/bugzilla-queue.rhel | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib') 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 -- cgit v1.2.3-24-g4f1b