OCF RA: Use rabbitmqctl_action wrapper for stop action

We want to use the wrapper function to call rabbitmqctl for stop, so
that we interpret correctly the exit code.
This commit is contained in:
Vincent Untz 2017-03-29 21:44:32 +02:00
parent 055164bc24
commit 6d9a00d544
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ rabbit_stop() {
return $OCF_SUCCESS
fi
$RABBITMQ_CTL stop ${RABBITMQ_PID_FILE}
rabbitmqctl_action stop ${RABBITMQ_PID_FILE}
rc=$?
if [ "$rc" != 0 ]; then