MXS-2057 systemd watchdog

Systemd wathdog notification at a little more than 2/3 of the
systemd configured time. In the service config (maxscale.service)
add e.g. WatchdogSec=30s to set and enable the watchdog.
For building: install libsystemd-dev.

The next commit will modify cmake configuration and code to
conditionally compile the new code based on existence of libsystemd-dev.
This commit is contained in:
Niclas Antti
2018-11-09 10:18:22 +02:00
parent 2a6df0e724
commit f29e5b65de
4 changed files with 93 additions and 1 deletions

View File

@ -15,5 +15,9 @@ add_library(maxbase STATIC
average.cc
)
target_link_libraries(maxbase
systemd
)
set_target_properties(maxbase PROPERTIES VERSION "1.0.0" LINK_FLAGS -Wl,-z,defs)
add_subdirectory(test)