summaryrefslogtreecommitdiff
path: root/scripts/rabbitmq-server.ocf
diff options
context:
space:
mode:
authorMate Lakat <mlakat@mlakat.hu>2017-05-03 11:41:45 +0200
committerMate Lakat <mlakat@mlakat.hu>2017-05-03 11:46:26 +0200
commitb43f6aa7db5edfc8561f6360813ccb3e1262d345 (patch)
tree0d3bd09052927c4c20b2c7b2c51ed5acf2c072a7 /scripts/rabbitmq-server.ocf
parent2c17e8645ebf814fcf8d9370978958b07dc9d490 (diff)
downloadrabbitmq-server-git-b43f6aa7db5edfc8561f6360813ccb3e1262d345.tar.gz
Log rabbitmqctl's output on failure
It would be helpful to see rabbit's output when it exits with non-zero status code. The log level is left at info, as it might be business as usual that a node is not running rabbit. The -q switch prevents the output from being logged if the return value is zero.
Diffstat (limited to 'scripts/rabbitmq-server.ocf')
-rwxr-xr-xscripts/rabbitmq-server.ocf2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rabbitmq-server.ocf b/scripts/rabbitmq-server.ocf
index 96935b71c7..0670af792b 100755
--- a/scripts/rabbitmq-server.ocf
+++ b/scripts/rabbitmq-server.ocf
@@ -256,7 +256,7 @@ rabbitmqctl_action() {
local rc
local action
action=$@
- $RABBITMQ_CTL $NODENAME_ARG $action > /dev/null 2> /dev/null
+ ocf_run -q -info $RABBITMQ_CTL $NODENAME_ARG $action
rc=$?
case "$rc" in
0)