diff options
author | aneejit1 <aneejit1@gmail.com> | 2020-08-04 00:14:39 +0000 |
---|---|---|
committer | aneejit1 <aneejit1@gmail.com> | 2021-01-17 17:08:00 +0000 |
commit | 5f47d4f48195c6b74fb450ffed6ac15e8ab462d6 (patch) | |
tree | 444ae49e5821813f0e0783bc1355d52ece714bf0 /tdm/CMakeLists.txt | |
parent | d73dbfb4f128ae28ee7c0936ee1c7de4996e4764 (diff) | |
download | tdebase-5f47d4f48195c6b74fb450ffed6ac15e8ab462d6.tar.gz tdebase-5f47d4f48195c6b74fb450ffed6ac15e8ab462d6.zip |
Create a systemd service file for tdm
Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'tdm/CMakeLists.txt')
-rw-r--r-- | tdm/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tdm/CMakeLists.txt b/tdm/CMakeLists.txt index ce8a1f4ed..4d37df766 100644 --- a/tdm/CMakeLists.txt +++ b/tdm/CMakeLists.txt @@ -22,3 +22,9 @@ include( ConfigureChecks.cmake ) add_subdirectory( backend ) add_subdirectory( kfrontend ) add_subdirectory( cryptocardwatcher ) + +# 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( ) |