2018-02-27 07:27:18 +00:00
|
|
|
set(CMAKE_INSTALL_SYSTEMD_SERVICEDIR "${CMAKE_INSTALL_LIBEXECDIR}/systemd/system"
|
|
|
|
CACHE PATH "Location for systemd service files")
|
2018-02-28 06:49:43 +00:00
|
|
|
set(CEPH_SYSTEMD_ENV_DIR "/etc/sysconfig"
|
2018-02-27 08:42:48 +00:00
|
|
|
CACHE PATH "Location for systemd service environmental variable settings files")
|
|
|
|
set(SYSTEMD_ENV_FILE "${CEPH_SYSTEMD_ENV_DIR}/ceph")
|
|
|
|
foreach(service
|
|
|
|
ceph-fuse@
|
|
|
|
ceph-mds@
|
|
|
|
ceph-mgr@
|
|
|
|
ceph-mon@
|
|
|
|
ceph-osd@
|
|
|
|
ceph-radosgw@
|
|
|
|
ceph-rbd-mirror@
|
|
|
|
rbdmap)
|
|
|
|
configure_file(
|
|
|
|
${service}.service.in
|
|
|
|
${service}.service
|
|
|
|
@ONLY)
|
|
|
|
install(
|
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${service}.service
|
|
|
|
DESTINATION ${CMAKE_INSTALL_SYSTEMD_SERVICEDIR})
|
|
|
|
endforeach()
|
|
|
|
|
2016-06-30 08:01:08 +00:00
|
|
|
install(FILES
|
|
|
|
ceph.target
|
2016-10-19 00:20:34 +00:00
|
|
|
ceph-fuse.target
|
2016-06-30 08:01:08 +00:00
|
|
|
ceph-osd.target
|
2016-09-07 05:39:58 +00:00
|
|
|
ceph-mgr.target
|
2016-06-30 08:01:08 +00:00
|
|
|
ceph-mon.target
|
|
|
|
ceph-mds.target
|
|
|
|
ceph-radosgw.target
|
|
|
|
ceph-rbd-mirror.target
|
2017-07-20 16:26:14 +00:00
|
|
|
ceph-volume@.service
|
2018-02-27 07:27:18 +00:00
|
|
|
DESTINATION ${CMAKE_INSTALL_SYSTEMD_SERVICEDIR})
|