Only activate systemd’s watchdog if we are compiling with systemd
ref #3152
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
[Unit]
|
||||
Description=Biboumi, XMPP to IRC gateway
|
||||
Documentation=man:biboumi(1) http://biboumi.louiz.org
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=${SYSTEMD_SERVICE_TYPE}
|
||||
ExecStart=${CMAKE_INSTALL_PREFIX}/bin/biboumi /etc/biboumi/biboumi.cfg
|
||||
ExecReload=/bin/kill -s USR1 $MAINPID
|
||||
WatchdogSec=10
|
||||
WatchdogSec=${WATCHDOG_SEC}
|
||||
Restart=always
|
||||
User=nobody
|
||||
Group=nobody
|
||||
|
||||
Reference in New Issue
Block a user