Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37870172
en ru br
ALT Linux repositórios
S:3.12.6-alt1

Group :: Sistema/Servidores
RPM: rabbitmq-server

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: rabbitmq-server-0002-Add-systemd-notification-support.patch
Download


From: John Eckersberg <jeckersb@redhat.com>
Date: Wed, 18 Feb 2015 16:11:12 -0500
Subject: [PATCH] Add systemd notification support
diff --git a/src/rabbit.erl b/src/rabbit.erl
index d76e3e475..7b1169adb 100644
--- a/src/rabbit.erl
+++ b/src/rabbit.erl
@@ -345,6 +345,11 @@ broker_start() ->
     Plugins = rabbit_plugins:setup(),
     ToBeLoaded = Plugins ++ ?APPS,
     start_apps(ToBeLoaded),
+    case code:load_file(sd_notify) of
+        {module, sd_notify} -> SDNotify = sd_notify,
+			       SDNotify:sd_notify(0, "READY=1\nSTATUS=Initialized\nMAINPID=" ++ os:getpid() ++ "\n");
+        {error, _} -> ok
+    end,
     ok = rabbit_lager:broker_is_started(),
     ok = log_broker_started(rabbit_plugins:strictly_plugins(rabbit_plugins:active())).
 
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009