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

Ping the service manager and set a status message

Periodically "ping" the service manager (every 3 seconds) and set a
status message showing connection statistics.

This enables using the systemd(8) watchdog functionality for the
"ngircd.service" unit.
This commit is contained in:
Alexander Barton
2024-04-05 22:48:22 +02:00
parent e4873b4d63
commit 791778d7b6
4 changed files with 34 additions and 3 deletions

View File

@@ -37,6 +37,9 @@ EnvironmentFile=-/etc/default/ngircd-full-dbg
# Start ngIRCd. Note: systemd doesn't allow to use $DAEMON here!
ExecStart=/usr/sbin/ngircd --nodaemon --syslog $PARAMS
ExecReload=/bin/kill -HUP $MAINPID
# Error handling:
# ngIRCd tries to "ping" the service manager every 3 seconds.
WatchdogSec=10
Restart=on-failure
[Install]