Before=bopm.service hopm.service
[Service]
-Type=forking
+Type=notify
User=irc
Group=irc
# Settings & limits:
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
EnvironmentFile=-/etc/default/ngircd-full
EnvironmentFile=-/etc/default/ngircd-full-dbg
# Start ngIRCd. Note: systemd doesn't allow to use $DAEMON here!
-ExecStart=/usr/sbin/ngircd $PARAMS
+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]