about summary refs log tree commit diff
path: root/contrib/ngircd.service
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2024-04-05 22:48:22 +0200
committerAlexander Barton <alex@barton.de>2024-04-06 00:13:13 +0200
commit791778d7b6e2f0e92c67e6812f85445171c24572 (patch)
tree8b52d2ab605fd52f1244ff5e3111c379773b0b8b /contrib/ngircd.service
parente4873b4d63d0bcd4914a1cee82599a13cfd77e47 (diff)
downloadngircd-791778d7b6e2f0e92c67e6812f85445171c24572.tar.gz
ngircd-791778d7b6e2f0e92c67e6812f85445171c24572.zip
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.
Diffstat (limited to 'contrib/ngircd.service')
-rw-r--r--contrib/ngircd.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/ngircd.service b/contrib/ngircd.service
index 215f5052..5ab73553 100644
--- a/contrib/ngircd.service
+++ b/contrib/ngircd.service
@@ -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]