diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-11-08 16:36:35 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-11-08 16:36:35 +0000 |
| commit | 804a4e3b6172b3951f929f2cb5796c41b1773af9 (patch) | |
| tree | dd5228de0a3c569fa845904d497ce2b847fb11e6 | |
| parent | 6c341072bf67f3776389f5564937686c20830611 (diff) | |
| download | rabbitmq-server-git-804a4e3b6172b3951f929f2cb5796c41b1773af9.tar.gz | |
Explain
| -rw-r--r-- | src/rabbit_app_marker.erl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rabbit_app_marker.erl b/src/rabbit_app_marker.erl index 14daa98ccc..296c2918bc 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, [], []). |
