From 791778d7b6e2f0e92c67e6812f85445171c24572 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 5 Apr 2024 22:48:22 +0200 Subject: 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. --- contrib/ngircd.service | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/ngircd.service') 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] -- cgit 1.4.1