File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -933,16 +933,12 @@ stop_server_process() {
933
933
# Try to stop gracefully by known PID
934
934
ocf_log info " ${LH} Execute stop with timeout: ${TIMEOUT_ARG} "
935
935
su_rabbit_cmd " ${OCF_RESKEY_ctl} stop ${OCF_RESKEY_pid_file} 2>&1 >> \" ${OCF_RESKEY_log_dir} /shutdown_log\" "
936
- if [ $? -eq 0 ] ; then
937
- ocf_log info " ${LH} RMQ-server process (PID=${pid} ) stopped succesfully."
938
- ocf_log info " ${LH} grant a graceful termintation window ${OCF_RESKEY_stop_time} to end its beam and remove pidfile"
939
- sleep " ${OCF_RESKEY_stop_time} "
940
- fi
936
+ [ $? -eq 0 ] && ocf_log info " ${LH} RMQ-server process (PID=${pid} ) stopped succesfully."
941
937
fi
942
938
943
939
if [ -f ${OCF_RESKEY_pid_file} ] ; then
944
940
# Ensure there is no beam process and pidfile left
945
- ocf_log warn " ${LH} Cannot be stopped , forcing the RMQ-server process termination "
941
+ ocf_log warn " ${LH} The pidfile still exists , forcing the RMQ-server cleanup "
946
942
kill_rmq_and_remove_pid
947
943
fi
948
944
You can’t perform that action at this time.
0 commit comments