OCF RA: accept 1 as valid exit code from "rabbitmqctl status"
It may return 1 if the server is not completely running yet, and we don't want pacemaker to treat that as a complete unexpected error.
This commit is contained in:
parent
35bba6f8ad
commit
49f4c4b566
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue