1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-09-23 12:44:04 +00:00

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.
This commit is contained in:
Alexander Barton
2024-04-05 22:38:22 +02:00
parent 3e535a2955
commit e4873b4d63
5 changed files with 110 additions and 7 deletions

View File

@@ -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