summaryrefslogtreecommitdiffstats
path: root/tdm/CMakeLists.txt
diff options
context:
space:
mode:
authoraneejit1 <[email protected]>2020-08-04 00:14:39 +0000
committerSlávek Banko <[email protected]>2021-01-17 18:36:12 +0100
commit87ed5c26dcf411281367bf905186aaac4772628a (patch)
tree92961796fb52bbd0d651dd85035023ea7a18204f /tdm/CMakeLists.txt
parent0a08f71496165ad4e33ee0f5073b7ff3c73fab0b (diff)
downloadtdebase-87ed5c26dcf411281367bf905186aaac4772628a.tar.gz
tdebase-87ed5c26dcf411281367bf905186aaac4772628a.zip
Create a systemd service file for tdm
Signed-off-by: aneejit1 <[email protected]> (cherry picked from commit 5f47d4f48195c6b74fb450ffed6ac15e8ab462d6)
Diffstat (limited to 'tdm/CMakeLists.txt')
-rw-r--r--tdm/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tdm/CMakeLists.txt b/tdm/CMakeLists.txt
index 08096f84c..692e96e88 100644
--- a/tdm/CMakeLists.txt
+++ b/tdm/CMakeLists.txt
@@ -21,3 +21,9 @@ include( ConfigureChecks.cmake )
add_subdirectory( backend )
add_subdirectory( kfrontend )
+
+# systemd
+if( BUILD_TDM_SYSTEMD_UNIT_FILE AND NOT "${SYSTEMDSYSTEMUNITDIR}" STREQUAL "" )
+ configure_file( "${TDM_SERVICE_FILE_TEMPLATE}" tdm.service @ONLY )
+ install( FILES "${CMAKE_CURRENT_BINARY_DIR}/tdm.service" DESTINATION ${SYSTEMDSYSTEMUNITDIR} )
+endif( )