summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2012-11-27 20:38:41 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2012-11-27 20:38:41 +0000
commit7313dd0a6cb254c6b1432f42c60f137bea29a0d1 (patch)
tree96a1821c337a221e4c5b341400c4a81e3d1f6cf4 /cpp
parenta89dce24a2213a759cf17ed360a4bcb0c02da632 (diff)
downloadqpid-python-7313dd0a6cb254c6b1432f42c60f137bea29a0d1.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/qpid@1414392 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/BuildInstallSettings.cmake1
-rw-r--r--cpp/etc/CMakeLists.txt3
-rw-r--r--cpp/etc/Makefile.am8
-rw-r--r--cpp/etc/qpidd.service (renamed from cpp/etc/qpidd.service.in)0
4 files changed, 8 insertions, 4 deletions
diff --git a/cpp/BuildInstallSettings.cmake b/cpp/BuildInstallSettings.cmake
index 23cc24c96c..f2b1fca188 100644
--- a/cpp/BuildInstallSettings.cmake
+++ b/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/cpp/etc/CMakeLists.txt b/cpp/etc/CMakeLists.txt
index 014842c9c7..e86f2094d9 100644
--- a/cpp/etc/CMakeLists.txt
+++ b/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/cpp/etc/Makefile.am b/cpp/etc/Makefile.am
index 7af495f089..cee4e2d52d 100644
--- a/cpp/etc/Makefile.am
+++ b/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/cpp/etc/qpidd.service.in b/cpp/etc/qpidd.service
index a6549834f4..a6549834f4 100644
--- a/cpp/etc/qpidd.service.in
+++ b/cpp/etc/qpidd.service