Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37562497
en ru br
ALT Linux repos
S:21.12-alt1
5.0: 2.0.2-alt1
4.1: 2.0.3-alt1.M41.1
4.0: 1.1.4-alt1
3.0: 0.9-alt1
+backports:1.1.2-alt0.M30.1

Group :: System/Servers
RPM: ejabberd

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ejabberd-fedora-enable-systemd-notification-if-available.patch
Download


From 06b8b27aaef8229ffab5babd705c47b92b509f6c Mon Sep 17 00:00:00 2001
From: Randy Barlow <randy@electronsweatshop.com>
Date: Thu, 14 Nov 2019 17:00:23 -0500
Subject: [PATCH] Enable systemd notification if available.
This patch was originally written by Peter Lemenkov, and was
adapted for ejabberd 19.09.1.
Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
---
 src/ejabberd_app.erl | 1 +
 1 file changed, 1 insertion(+)
diff --git a/src/ejabberd_app.erl b/src/ejabberd_app.erl
index f7df1dd7..f4cd1fb2 100644
--- a/src/ejabberd_app.erl
+++ b/src/ejabberd_app.erl
@@ -55,6 +55,7 @@ start(normal, _Args) ->
 		    {ok, SupPid} ->
 			ejabberd_system_monitor:start(),
 			register_elixir_config_hooks(),
+			{module, sd_notify} == code:load_file(sd_notify) andalso sd_notify:sd_notify(0, "READY=1\nSTATUS=Initialized\nMAINPID=" ++ os:getpid() ++ "\n"),
 			ejabberd_cluster:wait_for_sync(infinity),
 			ejabberd_hooks:run(ejabberd_started, []),
 			ejabberd:check_apps(),
-- 
2.24.0
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin