summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2017-04-03 13:08:19 +0300
committerGitHub <noreply@github.com>2017-04-03 13:08:19 +0300
commitde7ef86119761bd151e02f13ca0ec37310c67073 (patch)
treed82a73139b21e5b8ccac053f58a428b4c7982ef4
parent7741b37b1efa97ac9b17685cc626bd35ee52ca16 (diff)
parent48182dee4dfb4feead04a60dd90e99202a4eca0b (diff)
downloadrabbitmq-server-git-de7ef86119761bd151e02f13ca0ec37310c67073.tar.gz
Merge pull request #1169 from rabbitmq/more-info-during-shutdown
Add more info during rabbitmqctl shutdown
-rw-r--r--src/rabbit_control_main.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/rabbit_control_main.erl b/src/rabbit_control_main.erl
index 9c512e256a..9cad46cb2c 100644
--- a/src/rabbit_control_main.erl
+++ b/src/rabbit_control_main.erl
@@ -156,7 +156,7 @@ start() ->
Inform = case Quiet of
true -> fun (_Format, _Args1) -> ok end;
false -> fun (Format, Args1) ->
- io:format(Format ++ " ...~n", Args1)
+ io:format(Format ++ "~n", Args1)
end
end,
try
@@ -271,10 +271,13 @@ do_action(Command, Node, Args, Opts, Inform, Timeout) ->
end.
shutdown_node_and_wait_pid_to_stop(Node, Pid, Inform) ->
- Inform("Shutting down RabbitMQ node ~p running at PID ~p", [Node, Pid]),
+ Inform("Shutting down RabbitMQ node ~p running at PID ~s", [Node, Pid]),
Res = call(Node, {rabbit, stop_and_halt, []}),
case Res of
- ok -> wait_for_process_death(Pid);
+ ok ->
+ Inform("Waiting for PID ~s to terminate", [Pid]),
+ wait_for_process_death(Pid),
+ Inform("RabbitMQ node running at PID ~s successfully shut down", [Pid]);
_ -> ok
end,
Res.