Blame rabbitmq-server-systemd-notify-support.patch

John Eckersberg 944e73
--- rabbitmq-server-3.4.0/src/rabbit.erl.orig	2014-10-22 09:23:41.578344937 -0400
John Eckersberg 944e73
+++ rabbitmq-server-3.4.0/src/rabbit.erl	2014-10-22 09:26:41.543213183 -0400
John Eckersberg 944e73
@@ -323,6 +323,8 @@
John Eckersberg 944e73
     Plugins = rabbit_plugins:setup(),
John Eckersberg 944e73
     ToBeLoaded = Plugins ++ ?APPS,
John Eckersberg 944e73
     start_apps(ToBeLoaded),
John Eckersberg 944e73
+    {module, sd_notify} == code:load_file(sd_notify) andalso
John Eckersberg 944e73
+        sd_notify:sd_notify(0, "READY=1"),
John Eckersberg 944e73
     ok = log_broker_started(rabbit_plugins:active()).
John Eckersberg 1281b1
 
John Eckersberg 944e73
 start_it(StartFun) ->