summaryrefslogtreecommitdiff
path: root/src/rabbit.erl
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-09-30 14:37:21 +0100
committerMatthew Sackman <matthew@lshift.net>2009-09-30 14:37:21 +0100
commite6cfdebe34120a934b284ddba47db7e53c48a4fa (patch)
tree706009f82b2fb2de3af3652ae864fffc51137f71 /src/rabbit.erl
parentb51b34d83dcd19d2c5ab9c007309db703354d5a6 (diff)
parent0271621ac9c395b6514eabbc817e13aeb04ba127 (diff)
downloadrabbitmq-server-git-e6cfdebe34120a934b284ddba47db7e53c48a4fa.tar.gz
merging in from default
Diffstat (limited to 'src/rabbit.erl')
-rw-r--r--src/rabbit.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index b6190d8e8d..9b0470311b 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -217,6 +217,12 @@ app_location() ->
{ok, Application} = application:get_application(),
filename:absname(code:where_is_file(atom_to_list(Application) ++ ".app")).
+home_dir() ->
+ case init:get_argument(home) of
+ {ok, [[Home]]} -> Home;
+ Other -> Other
+ end.
+
%---------------------------------------------------------------------------
print_banner() ->
@@ -241,6 +247,8 @@ print_banner() ->
?COPYRIGHT_MESSAGE, ?INFORMATION_MESSAGE]),
Settings = [{"node", node()},
{"app descriptor", app_location()},
+ {"home dir", home_dir()},
+ {"cookie hash", rabbit_misc:cookie_hash()},
{"log", log_location(kernel)},
{"sasl log", log_location(sasl)},
{"database dir", rabbit_mnesia:dir()}],