summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2016-01-09 18:01:05 +0300
committerMichael Klishin <michael@clojurewerkz.org>2016-01-09 18:01:05 +0300
commit26b670a90e2b27e8d09fcba34a8f2e59d9a47147 (patch)
tree339aca70c8172bd40762cb0e5a330ba639d591c0 /scripts
parent33ce3f8d9caf9ac7d5048ac323526a7f1772e9b6 (diff)
parent03fd0c2d35e82ed02c9fe615502e6b78c6ee9a1b (diff)
downloadrabbitmq-server-git-26b670a90e2b27e8d09fcba34a8f2e59d9a47147.tar.gz
Merge branch 'stable' into rabbitmq-federation-7
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rabbitmq-server-ha.ocf8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/rabbitmq-server-ha.ocf b/scripts/rabbitmq-server-ha.ocf
index 5f338211d6..6cec4f1864 100755
--- a/scripts/rabbitmq-server-ha.ocf
+++ b/scripts/rabbitmq-server-ha.ocf
@@ -933,16 +933,12 @@ stop_server_process() {
# Try to stop gracefully by known PID
ocf_log info "${LH} Execute stop with timeout: ${TIMEOUT_ARG}"
su_rabbit_cmd "${OCF_RESKEY_ctl} stop ${OCF_RESKEY_pid_file} 2>&1 >> \"${OCF_RESKEY_log_dir}/shutdown_log\""
- if [ $? -eq 0 ] ; then
- ocf_log info "${LH} RMQ-server process (PID=${pid}) stopped succesfully."
- ocf_log info "${LH} grant a graceful termintation window ${OCF_RESKEY_stop_time} to end its beam and remove pidfile"
- sleep "${OCF_RESKEY_stop_time}"
- fi
+ [ $? -eq 0 ] && ocf_log info "${LH} RMQ-server process (PID=${pid}) stopped succesfully."
fi
if [ -f ${OCF_RESKEY_pid_file} ] ; then
# Ensure there is no beam process and pidfile left
- ocf_log warn "${LH} Cannot be stopped, forcing the RMQ-server process termination"
+ ocf_log warn "${LH} The pidfile still exists, forcing the RMQ-server cleanup"
kill_rmq_and_remove_pid
fi