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
View File
@@ -242,7 +242,9 @@ configure_file(biboumi.h.cmake src/biboumi.h)
if(SYSTEMD_FOUND)
set(SYSTEMD_SERVICE_TYPE "notify")
set(WATCHDOG_SEC "20")
else()
set(SYSTEMD_SERVICE_TYPE "simple")
set(WATCHDOG_SEC "")
endif()
configure_file(unit/biboumi.service.cmake biboumi.service)