From: Kefu Chai Date: Thu, 30 Jun 2016 08:01:08 +0000 (+0800) Subject: cmake: install systemd files X-Git-Tag: ses5-milestone5~549^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=41061ce7698513db4382f78e4d326b9430b709bd;p=ceph.git cmake: install systemd files add an option "WITH_SYSTEMD", off by default Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7da12959b0b4..acd4b3814498 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -398,3 +398,9 @@ add_subdirectory(doc) if(WITH_MANPAGE) add_subdirectory(man) endif(WITH_MANPAGE) + +option(WITH_SYSTEMD "install systemd target and service files" OFF) +if(WITH_SYSTEMD) + add_subdirectory(systemd) +endif() + diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt new file mode 100644 index 000000000000..31767d6d019d --- /dev/null +++ b/systemd/CMakeLists.txt @@ -0,0 +1,16 @@ +install(FILES + ceph.target + ceph-osd.target + ceph-mon.target + ceph-mds.target + ceph-radosgw.target + ceph-rbd-mirror.target + ceph-mds@.service + ceph-mon@.service + ceph-create-keys@.service + ceph-osd@.service + ceph-radosgw@.service + ceph-rbd-mirror@.service + ceph-disk@.service + rbdmap.service + DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/systemd/system)