Blob Blame History Raw
diff -Naur rabbitmq-server-3.3.5.orig/src/rabbit.erl rabbitmq-server-3.3.5/src/rabbit.erl
--- rabbitmq-server-3.3.5.orig/src/rabbit.erl	2014-08-27 09:33:37.404506484 -0400
+++ rabbitmq-server-3.3.5/src/rabbit.erl	2014-08-27 09:34:51.800243321 -0400
@@ -314,6 +314,8 @@
                      rabbit_mnesia:check_cluster_consistency(),
                      ok = app_utils:start_applications(
                             app_startup_order(), fun handle_app_error/2),
+                     {module, sd_notify} == code:load_file(sd_notify) andalso
+                         sd_notify:sd_notify(0, "READY=1"),
                      ok = log_broker_started(rabbit_plugins:active())
              end).
 
@@ -336,6 +338,8 @@
                                                                   false),
                      ok = app_utils:start_applications(
                             StartupApps, fun handle_app_error/2),
+                     {module, sd_notify} == code:load_file(sd_notify) andalso
+                         sd_notify:sd_notify(0, "READY=1"),
                      ok = log_broker_started(Plugins)
              end).