]> arthur.barton.de Git - ngircd-alex.git/blobdiff - contrib/ngircd.service
ngIRCd Release 27
[ngircd-alex.git] / contrib / ngircd.service
index 215f5052714806693d37fec4e32aefdcd70e7df1..311bc0d8950dd76d84e2c84d7a5d48fb55577c48 100644 (file)
@@ -29,6 +29,8 @@ RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
 RestrictRealtime=yes
 RuntimeDirectory=ircd
 RuntimeDirectoryMode=750
+StandardError=journal
+StandardOutput=journal
 # Try to load "default files" from any Debian package variant to keep this
 # unit generic.
 EnvironmentFile=-/etc/default/ngircd
@@ -37,6 +39,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]