diff options
author | Darryl L. Pierce <mcpierce@apache.org> | 2012-11-27 20:38:41 +0000 |
---|---|---|
committer | Darryl L. Pierce <mcpierce@apache.org> | 2012-11-27 20:38:41 +0000 |
commit | 3f3672469e46b6f6ac86e59f8537bf9dc9e4ecc4 (patch) | |
tree | 947216e483909462cfd112867bd908b4cec61a74 /qpid/cpp | |
parent | b2da79bd6a02f9584ea9ae1ab00812fdcab3853b (diff) | |
download | qpid-python-3f3672469e46b6f6ac86e59f8537bf9dc9e4ecc4.tar.gz |
QPID-4388: Systemd support not being installed with Cmake
Previously systemd support was only in the automake system, and the
qpidd.service file was processed via sed. But, since there are no
substitutions needed in the file, it's now renamed to qpidd.service. And
both Makefile.am and CMakeLists.txt will simply install it to
/usr/lib/systemd/system.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1414392 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r-- | qpid/cpp/BuildInstallSettings.cmake | 1 | ||||
-rw-r--r-- | qpid/cpp/etc/CMakeLists.txt | 3 | ||||
-rw-r--r-- | qpid/cpp/etc/Makefile.am | 8 | ||||
-rw-r--r-- | qpid/cpp/etc/qpidd.service (renamed from qpid/cpp/etc/qpidd.service.in) | 0 |
4 files changed, 8 insertions, 4 deletions
diff --git a/qpid/cpp/BuildInstallSettings.cmake b/qpid/cpp/BuildInstallSettings.cmake index 23cc24c96c..f2b1fca188 100644 --- a/qpid/cpp/BuildInstallSettings.cmake +++ b/qpid/cpp/BuildInstallSettings.cmake @@ -180,6 +180,7 @@ endif() set (QPID_INSTALL_LIBDIR ${LIB_INSTALL_DIR}) set (QPID_LOCALSTATE_DIR var) # Directory to store local state data set (QPID_MAN_DIR man) # Directory to install manual files + set (QPIDD_INSTALL_SYSTEMDDIR usr/lib/systemd/system) # Systemd service files set_absolute_install_path (QPIDC_MODULE_DIR ${QPID_INSTALL_LIBDIR}/qpid/client) # Directory to load client plug-in modules from set_absolute_install_path (QPIDD_MODULE_DIR ${QPID_INSTALL_LIBDIR}/qpid/daemon) # Directory to load broker plug-in modules from diff --git a/qpid/cpp/etc/CMakeLists.txt b/qpid/cpp/etc/CMakeLists.txt index 014842c9c7..e86f2094d9 100644 --- a/qpid/cpp/etc/CMakeLists.txt +++ b/qpid/cpp/etc/CMakeLists.txt @@ -23,6 +23,9 @@ install(FILES qpidc.conf install(FILES qpidd.conf DESTINATION ${QPID_INSTALL_CONFDIR} COMPONENT ${QPID_COMPONENT_BROKER}) +install(FILES qpidd.service + DESTINATION ${QPIDD_INSTALL_SYSTEMDDIR} + COMPONENT ${QPID_COMPONENT_BROKER}) if (BUILD_SASL) install(FILES sasl2/qpidd.conf DESTINATION ${QPID_INSTALL_SASLDIR} diff --git a/qpid/cpp/etc/Makefile.am b/qpid/cpp/etc/Makefile.am index 7af495f089..cee4e2d52d 100644 --- a/qpid/cpp/etc/Makefile.am +++ b/qpid/cpp/etc/Makefile.am @@ -20,7 +20,7 @@ SASL_CONF = sasl2/qpidd.conf EXTRA_DIST = \ $(SASL_CONF) \ - qpidd.service.in qpidd.in qpidd-primary.in qpidd.conf qpidc.conf CMakeLists.txt \ + qpidd.service qpidd.in qpidd-primary.in qpidd.conf qpidc.conf CMakeLists.txt \ cluster.conf-example.xml.in confdir = $(sysconfdir)/qpid @@ -47,11 +47,11 @@ qpidd-primary: qpidd-primary.in sed $(SUBST) $< > $@ cluster.conf-example.xml: cluster.conf-example.xml.in sed $(SUBST) $< > $@ -qpidd.service: qpidd.service.in - sed $(SUBST) $< > $@ CLEANFILES = qpidd qpidd-primary cluster.conf-example.xml qpidd.service initddir = $(sysconfdir)/init.d -nobase_initd_SCRIPTS = qpidd qpidd-primary qpidd.service +nobase_initd_SCRIPTS = qpidd qpidd-primary +systemddir = /usr/lib/systemd/system +nobase_systemd_SCRIPTS = qpidd.service diff --git a/qpid/cpp/etc/qpidd.service.in b/qpid/cpp/etc/qpidd.service index a6549834f4..a6549834f4 100644 --- a/qpid/cpp/etc/qpidd.service.in +++ b/qpid/cpp/etc/qpidd.service |