From e4873b4d63d0bcd4914a1cee82599a13cfd77e47 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 5 Apr 2024 22:38:22 +0200 Subject: Add support for the "sd_notify" protocol This allows the "ngircd.service" systemd(8) unit to use the "notify" service type, which allows for better status tracking by the service manager. --- contrib/ngircd.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/ngircd.service b/contrib/ngircd.service index fb3cf8a1..215f5052 100644 --- a/contrib/ngircd.service +++ b/contrib/ngircd.service @@ -11,7 +11,7 @@ Before=anope.service atheme.service irc-services.service Before=bopm.service hopm.service [Service] -Type=forking +Type=notify User=irc Group=irc # Settings & limits: @@ -35,7 +35,7 @@ EnvironmentFile=-/etc/default/ngircd EnvironmentFile=-/etc/default/ngircd-full EnvironmentFile=-/etc/default/ngircd-full-dbg # Start ngIRCd. Note: systemd doesn't allow to use $DAEMON here! -ExecStart=/usr/sbin/ngircd $PARAMS +ExecStart=/usr/sbin/ngircd --nodaemon --syslog $PARAMS ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure -- cgit 1.4.1