We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 91deea1 + bc03f14 commit 7f7cd72Copy full SHA for 7f7cd72
systemd/CMakeLists.txt
@@ -18,10 +18,14 @@ if(WITH_SYSTEMD)
18
set(SYSTEMD_CONFIGURATIONS_FILES_DIR ${SYSTEMD_UNITDIR} )
19
20
if(WITH_SYSTEMD_WATCHDOG)
21
- set( DLT_WatchdogSec 2 )
+ if(NOT DEFINED DLT_WatchdogSec)
22
+ set(DLT_WatchdogSec 2 CACHE STRING "Watchdog timeout in seconds")
23
+ endif()
24
message( STATUS "The systemd watchdog is enabled - timeout is set to ${DLT_WatchdogSec} seconds")
25
else(WITH_SYSTEMD_WATCHDOG)
- set( DLT_WatchdogSec 0 )
26
27
+ set(DLT_WatchdogSec 0 CACHE STRING "Watchdog timeout in seconds")
28
29
message( STATUS "The systemd watchdog is disabled")
30
endif(WITH_SYSTEMD_WATCHDOG)
31
0 commit comments