summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2010-02-04 22:53:27 +0000
committerMatthias Radestock <matthias@lshift.net>2010-02-04 22:53:27 +0000
commit3f7e5d6e570fa646fce3125712bbf1a53752f759 (patch)
tree9ae46a3c904c4c24c2bc518d4d49b6614c41256a /src
parent9c4138f756c63a1f075c64a5f2c8240e1c27ff3c (diff)
downloadrabbitmq-server-git-3f7e5d6e570fa646fce3125712bbf1a53752f759.tar.gz
docs
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_control.erl13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl
index f75183995f..2ea6475303 100644
--- a/src/rabbit_control.erl
+++ b/src/rabbit_control.erl
@@ -142,6 +142,7 @@ Available commands:
cluster <ClusterNode> ...
status
rotate_logs [Suffix]
+ close_connection <ConnectionPid> <ExplanationString>
add_user <UserName> <Password>
delete_user <UserName>
@@ -162,8 +163,6 @@ Available commands:
list_bindings [-p <VHostPath>]
list_connections [<ConnectionInfoItem> ...]
- close_connection <ConnectionPid> <ExplanationString>
-
Quiet output mode is selected with the \"-q\" flag. Informational
messages are suppressed when quiet mode is in effect.
@@ -240,6 +239,11 @@ action(rotate_logs, Node, Args = [Suffix], Inform) ->
Inform("Rotating logs to files with suffix ~p", [Suffix]),
call(Node, {rabbit, rotate_logs, Args});
+action(close_connection, Node, [PidStr, Explanation], Inform) ->
+ Inform("Closing connection ~s", [PidStr]),
+ rpc_call(Node, rabbit_reader, shutdown,
+ [rabbit_misc:string_to_pid(PidStr), Explanation]);
+
action(add_user, Node, Args = [Username, _Password], Inform) ->
Inform("Creating user ~p", [Username]),
call(Node, {rabbit_access_control, add_user, Args});
@@ -306,11 +310,6 @@ action(list_connections, Node, Args, Inform) ->
[ArgAtoms]),
ArgAtoms);
-action(close_connection, Node, [PidStr, Explanation], Inform) ->
- Inform("Closing connection ~s", [PidStr]),
- rpc_call(Node, rabbit_reader, shutdown,
- [rabbit_misc:string_to_pid(PidStr), Explanation]);
-
action(Command, Node, Args, Inform) ->
{VHost, RemainingArgs} = parse_vhost_flag(Args),
action(Command, Node, VHost, RemainingArgs, Inform).