X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fngircd.service;h=311bc0d8950dd76d84e2c84d7a5d48fb55577c48;hb=HEAD;hp=215f5052714806693d37fec4e32aefdcd70e7df1;hpb=e4873b4d63d0bcd4914a1cee82599a13cfd77e47;p=ngircd-alex.git diff --git a/contrib/ngircd.service b/contrib/ngircd.service index 215f5052..311bc0d8 100644 --- a/contrib/ngircd.service +++ b/contrib/ngircd.service @@ -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]