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

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