rabbitmq-server/ocf-fixes.patch

23 lines
680 B
Diff
Raw Normal View History

Index: rabbitmq-server-2.8.7/rabbitmq-server.ocf
===================================================================
--- rabbitmq-server-2.8.7.orig/rabbitmq-server.ocf
+++ rabbitmq-server-2.8.7/rabbitmq-server.ocf
@@ -256,7 +256,7 @@ rabbitmqctl_action() {
ocf_log debug "RabbitMQ server is running normally"
return $OCF_SUCCESS
;;
- 2)
+ 1|2)
ocf_log debug "RabbitMQ server is not running"
return $OCF_NOT_RUNNING
;;
@@ -299,7 +299,7 @@ rabbit_stop() {
return $OCF_SUCCESS
fi
- $RABBITMQ_CTL stop
+ rabbitmqctl_action stop
rc=$?
if [ "$rc" != 0 ]; then