1 From: John Eckersberg <jeckersb@redhat.com>
2 Date: Wed, 18 Feb 2015 16:11:12 -0500
3 Subject: [PATCH] Add systemd notification support
6 diff --git a/src/rabbit.erl b/src/rabbit.erl
7 index 32ff240..f9e8231 100644
10 @@ -280,6 +280,11 @@ broker_start() ->
11 Plugins = rabbit_plugins:setup(),
12 ToBeLoaded = Plugins ++ ?APPS,
13 start_apps(ToBeLoaded),
14 + case code:load_file(sd_notify) of
15 + {module, sd_notify} -> SDNotify = sd_notify,
16 + SDNotify:sd_notify(0, "READY=1\nSTATUS=Initialized\nMAINPID=" ++ os:getpid() ++ "\n");
19 ok = log_broker_started(rabbit_plugins:active()).