From 4c54d7da5a29ed66e070558a447639b946f3344e Mon Sep 17 00:00:00 2001 From: Timo Lotterbach Date: Mon, 26 Nov 2012 05:50:07 -0800 Subject: LayerManagerService: moved Systemd health monitor to health plugin the systemd integration was moved to an optional plugins. this way LayerManagerService has no dependencies on systemd. health monitoring plugins implement the interface IHealthMonitor. Currently there's only one avialable that uses systemd watchdog to report health status to the system. Signed-off-by: Timo Lotterbach --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 443fe3f..51ce0e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ option (WITH_SERVICE_BIN "Build LayerManagerService Binary" option (WITH_CLIENT_LIB "Build LayerManagement Client Lib" ON) option (WITH_COMMUNICATOR_GEN "Build Generic Communicator Plugin" ON) -option (WITH_SYSTEMD "Build with native systemd integration" OFF) +option (WITH_PLUGIN_SYSTEMD_HEALTH_MONITOR "Build plugin for systemd health monitoring" OFF) option (WITH_TEXT_RENDERER "Build renderer renderer (only logging)" OFF) @@ -159,6 +159,10 @@ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-function") #set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") #============================================================================== +if (WITH_PLUGIN_SYSTEMD_HEALTH_MONITOR) + add_subdirectory (LayerManagerPlugins/HealthMonitor/SystemdHealthMonitor) +endif(WITH_PLUGIN_SYSTEMD_HEALTH_MONITOR) + if (WITH_COMMUNICATOR_GEN) add_subdirectory (LayerManagerCommands) add_subdirectory (LayerManagerPlugins/Communicators/GenericCommunicator) @@ -217,5 +221,3 @@ endif (BUILD_UTILS_LIB) if (WITH_TESTS) enable_testing() endif(WITH_TESTS) - - -- cgit v1.2.1