summaryrefslogtreecommitdiffstats
path: root/systemd
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2018-02-27 08:27:18 +0100
committerKefu Chai <kchai@redhat.com>2018-02-27 17:23:22 +0100
commit50707e7d621e00b4ab9715be8310af5f1a9e08c2 (patch)
treea9b768a8e6a2530bd6709b3f83d1bc55a153a715 /systemd
parentMerge pull request #20436 from smithfarm/wip-22999 (diff)
downloadceph-50707e7d621e00b4ab9715be8310af5f1a9e08c2.tar.xz
ceph-50707e7d621e00b4ab9715be8310af5f1a9e08c2.zip
debian: install system units using cmake
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt
index 3b03b6e6132..cd88f328926 100644
--- a/systemd/CMakeLists.txt
+++ b/systemd/CMakeLists.txt
@@ -1,3 +1,5 @@
+set(CMAKE_INSTALL_SYSTEMD_SERVICEDIR "${CMAKE_INSTALL_LIBEXECDIR}/systemd/system"
+ CACHE PATH "Location for systemd service files")
install(FILES
ceph.target
ceph-fuse.target
@@ -17,4 +19,4 @@ install(FILES
ceph-disk@.service
ceph-volume@.service
rbdmap.service
- DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/systemd/system)
+ DESTINATION ${CMAKE_INSTALL_SYSTEMD_SERVICEDIR})