]> git.proxmox.com Git - ceph.git/blob - ceph/systemd/CMakeLists.txt
import 15.2.0 Octopus source
[ceph.git] / ceph / systemd / CMakeLists.txt
1 set(CMAKE_INSTALL_SYSTEMD_SERVICEDIR "${CMAKE_INSTALL_LIBEXECDIR}/systemd/system"
2 CACHE PATH "Location for systemd service files")
3 set(CEPH_SYSTEMD_ENV_DIR "/etc/sysconfig"
4 CACHE PATH "Location for systemd service environmental variable settings files")
5 set(SYSTEMD_ENV_FILE "${CEPH_SYSTEMD_ENV_DIR}/ceph")
6 foreach(service
7 ceph-crash
8 ceph-fuse@
9 ceph-mds@
10 ceph-mgr@
11 ceph-mon@
12 ceph-osd@
13 ceph-radosgw@
14 ceph-rbd-mirror@
15 ceph-immutable-object-cache@
16 rbdmap)
17 configure_file(
18 ${service}.service.in
19 ${service}.service
20 @ONLY)
21 install(
22 FILES ${CMAKE_CURRENT_BINARY_DIR}/${service}.service
23 DESTINATION ${CMAKE_INSTALL_SYSTEMD_SERVICEDIR})
24 endforeach()
25
26 install(FILES
27 ceph.target
28 ceph-fuse.target
29 ceph-osd.target
30 ceph-mgr.target
31 ceph-mon.target
32 ceph-mds.target
33 ceph-radosgw.target
34 ceph-rbd-mirror.target
35 ceph-immutable-object-cache.target
36 ceph-volume@.service
37 DESTINATION ${CMAKE_INSTALL_SYSTEMD_SERVICEDIR})