Blame rabbitmq-server-0002-Add-systemd-notification-support.patch
|
|
6f2b52 |
From 5469e5c3c861e8d55ca7ac50954e72b142139992 Mon Sep 17 00:00:00 2001
|
|
|
f8bec4 |
From: John Eckersberg <jeckersb@redhat.com>
|
|
|
f8bec4 |
Date: Wed, 18 Feb 2015 16:11:12 -0500
|
|
|
f8bec4 |
Subject: [PATCH] Add systemd notification support
|
|
|
f8bec4 |
|
|
|
6f2b52 |
---
|
|
|
6f2b52 |
src/rabbit.erl | 5 +++++
|
|
|
6f2b52 |
1 file changed, 5 insertions(+)
|
|
|
f8bec4 |
|
|
|
f8bec4 |
diff --git a/src/rabbit.erl b/src/rabbit.erl
|
|
|
6f2b52 |
index de51e658f..007b9fa6a 100644
|
|
|
f8bec4 |
--- a/src/rabbit.erl
|
|
|
f8bec4 |
+++ b/src/rabbit.erl
|
|
|
6f2b52 |
@@ -339,6 +339,11 @@ load_all_apps() ->
|
|
|
6f2b52 |
|
|
|
6f2b52 |
broker_start(Apps) ->
|
|
|
6f2b52 |
start_loaded_apps(Apps),
|
|
|
f8bec4 |
+ case code:load_file(sd_notify) of
|
|
|
f8bec4 |
+ {module, sd_notify} -> SDNotify = sd_notify,
|
|
|
f8bec4 |
+ SDNotify:sd_notify(0, "READY=1\nSTATUS=Initialized\nMAINPID=" ++ os:getpid() ++ "\n");
|
|
|
f8bec4 |
+ {error, _} -> ok
|
|
|
f8bec4 |
+ end,
|
|
|
1d1d3c |
ok = rabbit_lager:broker_is_started(),
|
|
|
1d1d3c |
ok = log_broker_started(rabbit_plugins:strictly_plugins(rabbit_plugins:active())).
|
|
|
f8bec4 |
|
|
|
6f2b52 |
--
|
|
|
6f2b52 |
2.21.0
|
|
|
6f2b52 |
|