diff options
author | Mauro Sardara <msardara@cisco.com> | 2021-05-17 09:41:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2021-05-17 09:41:49 +0000 |
commit | 0982497d26806bad1a069766ac46a4f238d850ab (patch) | |
tree | 258b44677913b500c59fafaf46ab9d390328f757 /ctrl/facemgr/CMakeLists.txt | |
parent | 9b1c12ef3312e4f7355b2218aaf24773b7d541ff (diff) | |
parent | e2b9f02e5e1420ea96d0174d75a53d42f5837e00 (diff) |
Merge "[HICN-695] facemgr: add systemd service"
Diffstat (limited to 'ctrl/facemgr/CMakeLists.txt')
-rw-r--r-- | ctrl/facemgr/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ctrl/facemgr/CMakeLists.txt b/ctrl/facemgr/CMakeLists.txt index 290f96fa0..ba9de9464 100644 --- a/ctrl/facemgr/CMakeLists.txt +++ b/ctrl/facemgr/CMakeLists.txt @@ -94,6 +94,20 @@ add_subdirectory(src) include(Packaging) +# Install service file in linux systems +include(ServiceScript) +install_service_script( + ${CMAKE_CURRENT_SOURCE_DIR}/config/facemgr.service + COMPONENT ${FACEMGR} +) + +# Configuration file +set(FACEMGR_CONF_FILE ${CMAKE_CURRENT_SOURCE_DIR}/config/facemgr.conf) +set(FACEMGR_CONF_FOLDER "/etc/facemgr") +if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + install (FILES ${FACEMGR_CONF_FILE} DESTINATION ${FACEMGR_CONF_FOLDER} COMPONENT ${FACEMGR}) +endif() + if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) include(Packager) make_packages() |