summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2012-11-08 16:36:35 +0000
committerSimon MacMullen <simon@rabbitmq.com>2012-11-08 16:36:35 +0000
commit7711b085cb94c8903b9eb6787bdc509745ea80f4 (patch)
treedd5228de0a3c569fa845904d497ce2b847fb11e6
parent46e4a2b5ac16428e69be16e6fd61632885dc5ef1 (diff)
downloadrabbitmq-server-7711b085cb94c8903b9eb6787bdc509745ea80f4.tar.gz
Explain
-rw-r--r--src/rabbit_app_marker.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rabbit_app_marker.erl b/src/rabbit_app_marker.erl
index 14daa98c..296c2918 100644
--- a/src/rabbit_app_marker.erl
+++ b/src/rabbit_app_marker.erl
@@ -25,6 +25,14 @@
-include("rabbit.hrl").
+%%----------------------------------------------------------------------------
+
+%% We want to know when another node has *started* shutting down (to
+%% write the cluster status file). The rabbit application goes away
+%% pretty much when we have *finished* shutting down. So we have this
+%% process to monitor instead - it;s the last thing to be started so
+%% the first thing to go.
+
start_link() ->
gen_server:start_link({local, rabbit_running}, ?MODULE, [], []).