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:
parent
055164bc24
commit
6d9a00d544
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue