Only activate systemd’s watchdog if we are compiling with systemd

ref #3152
This commit is contained in:
Florent Le Coz
2016-01-14 14:39:06 +01:00
parent 0864f2ab99
commit d58dcde856
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -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