summaryrefslogtreecommitdiff
path: root/packaging/common
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-02-09 11:48:00 +0000
committerSimon MacMullen <simon@rabbitmq.com>2011-02-09 11:48:00 +0000
commitea6524854d5674bd5dacabad3e183bc4c8ea3a5d (patch)
tree890277e5e68232362196b7f4046a6eea374a0a2d /packaging/common
parent054d57f33c9e35d2d6b93fb8317093906e93fd72 (diff)
downloadrabbitmq-server-git-ea6524854d5674bd5dacabad3e183bc4c8ea3a5d.tar.gz
Reverse to avoid negated conditional
Diffstat (limited to 'packaging/common')
-rw-r--r--packaging/common/rabbitmq-server.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/common/rabbitmq-server.init b/packaging/common/rabbitmq-server.init
index c2652d2767..e3f1d13f9f 100644
--- a/packaging/common/rabbitmq-server.init
+++ b/packaging/common/rabbitmq-server.init
@@ -34,7 +34,10 @@ set -e
start_rabbitmq () {
status_rabbitmq quiet
- if [ $RETVAL != 0 ] ; then
+ if [ $RETVAL = 0 ] ; then
+ echo RabbitMQ is currently running
+ RETVAL=1
+ else
RETVAL=0
set +e
nohup $DAEMON > ${INIT_LOG_DIR}/startup_log \
@@ -52,9 +55,6 @@ start_rabbitmq () {
;;
esac
set -e
- else
- echo RabbitMQ is currently running
- RETVAL=1
fi
}