summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-13 14:45:34 (GMT)
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-11-13 14:45:34 (GMT)
commit9afcf9b95d2c53f866e9a33ddce46562f8950ded (patch)
tree40226afed0dc9ced5b60a9e0b1289d7934601514
parent4e1eee3d902216752863be81a3a7643f816e3707 (diff)
downloadrabbitmq-server-9afcf9b95d2c53f866e9a33ddce46562f8950ded.tar.gz
Apply patch to support notify in rabbitmq-serverbaserock/master
http://pkgs.fedoraproject.org/cgit/rabbitmq-server.git/tree/rabbitmq-server-systemd-notify-support.patch
-rw-r--r--src/rabbit.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl
index f923cb0..28e706e 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -323,6 +323,8 @@ broker_start() ->
Plugins = rabbit_plugins:setup(),
ToBeLoaded = Plugins ++ ?APPS,
start_apps(ToBeLoaded),
+ {module, sd_notify} == code:load_file(sd_notify) andalso
+ sd_notify:sd_notify(0, "READY=1"),
ok = log_broker_started(rabbit_plugins:active()).
start_it(StartFun) ->