diff options
| author | Emile Joubert <emile@rabbitmq.com> | 2011-05-31 16:07:13 +0100 |
|---|---|---|
| committer | Emile Joubert <emile@rabbitmq.com> | 2011-05-31 16:07:13 +0100 |
| commit | 8007d629f2aa7a43807cb36ad1bf75130ae16b3b (patch) | |
| tree | 8f8b881a35e904eca10956655887b6fe607fefa2 /src/rabbit.erl | |
| parent | 2e363957c9192ec4f669bbb37e820ac4426c664d (diff) | |
| download | rabbitmq-server-git-8007d629f2aa7a43807cb36ad1bf75130ae16b3b.tar.gz | |
Move status info (again)
Diffstat (limited to 'src/rabbit.erl')
| -rw-r--r-- | src/rabbit.erl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index c239262d7c..88b1647473 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -180,6 +180,10 @@ -spec(status/0 :: () -> [{pid, integer()} | {running_applications, [{atom(), string(), string()}]} | + {os , {atom(), atom()}} | + {erlang_version , string()} | + {memory , any()} | + {env , [{atom() | term()}]} | {nodes, [{rabbit_mnesia:node_type(), [node()]}]} | {running_nodes, [node()]}]). -spec(log_location/1 :: ('sasl' | 'kernel') -> log_location()). @@ -218,7 +222,13 @@ stop_and_halt() -> status() -> [{pid, list_to_integer(os:getpid())}, - {running_applications, application:which_applications()}] ++ + {running_applications, application:which_applications()}, + {os, os:type()}, + {erlang_version, erlang:system_info(system_version)}, + {memory, erlang:memory()}, + {env, lists:filter(fun ({default_pass, _}) -> false; + (_) -> true + end, application:get_all_env(rabbit))}] ++ rabbit_mnesia:status(). rotate_logs(BinarySuffix) -> |
