diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2012-11-16 16:22:32 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-11-16 16:22:32 +0100 |
commit | 2a565b2c1fb2fc0002b2e1b7a174da9e7bd150ac (patch) | |
tree | 89add5bc2e271298cb6768c13ee62e5b477d9c1f /contrib | |
parent | b3a503abcdb34861e51841a4bf87af044a13acd4 (diff) | |
download | bugzilla-2a565b2c1fb2fc0002b2e1b7a174da9e7bd150ac.tar.gz bugzilla-2a565b2c1fb2fc0002b2e1b7a174da9e7bd150ac.tar.xz |
Bug 556195: bugzilla-queue.rhel initscript returns wrong result code when the daemon isn't running
r=justdave a=LpSolit
Diffstat (limited to 'contrib')
-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 |