summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Eckersberg <jeckersb@redhat.com>2015-02-18 16:11:12 -0500
committerJohn Eckersberg <jeckersb@redhat.com>2015-02-25 17:48:12 -0500
commitd4a78fefa56283bdf41044e2cb7b5daebb02fa0e (patch)
tree66ad3d069999b5527bd30f068d8d495410a9bcd9
parentb87d3447fd0e1d863eefe5bf1568306068737bf3 (diff)
downloadrabbitmq-server-git-d4a78fefa56283bdf41044e2cb7b5daebb02fa0e.tar.gz
Add systemd notification support
-rw-r--r--src/rabbit.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index ba78b1eee0..1e9733647e 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -335,6 +335,11 @@ broker_start() ->
Plugins = rabbit_plugins:setup(),
ToBeLoaded = Plugins ++ ?APPS,
start_apps(ToBeLoaded),
+ case code:load_file(sd_notify) of
+ {module, sd_notify} -> SDNotify = sd_notify,
+ SDNotify:sd_notify(0, "READY=1");
+ {error, _} -> ok
+ end,
ok = log_broker_started(rabbit_plugins:active()).
start_it(StartFun) ->