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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user