summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2012-10-11 19:05:51 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2012-10-11 19:05:51 +0000
commit7bc3da30bd8206d606620bc427e3d2d7a832e72e (patch)
tree3222f8fd36f122595544c60dfdba0e9b0c64afa4
parent783ef6c96ce072f5a49464d8b54a86ec17b94c0c (diff)
downloadqpid-python-7bc3da30bd8206d606620bc427e3d2d7a832e72e.tar.gz
JIRA 4351 : Provides systemd support to qpidd.
Systemd is a replacement for SysVInit scripts for starting up daemons on Linux systems. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1397235 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/etc/Makefile.am8
-rw-r--r--cpp/etc/qpidd.service.in13
2 files changed, 18 insertions, 3 deletions
diff --git a/cpp/etc/Makefile.am b/cpp/etc/Makefile.am
index aa41c65b37..7af495f089 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.in qpidd-primary.in qpidd.conf qpidc.conf CMakeLists.txt \
+ qpidd.service.in qpidd.in qpidd-primary.in qpidd.conf qpidc.conf CMakeLists.txt \
cluster.conf-example.xml.in
confdir = $(sysconfdir)/qpid
@@ -47,9 +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
+CLEANFILES = qpidd qpidd-primary cluster.conf-example.xml qpidd.service
initddir = $(sysconfdir)/init.d
-nobase_initd_SCRIPTS = qpidd qpidd-primary
+nobase_initd_SCRIPTS = qpidd qpidd-primary qpidd.service
diff --git a/cpp/etc/qpidd.service.in b/cpp/etc/qpidd.service.in
new file mode 100644
index 0000000000..ec89e12abd
--- /dev/null
+++ b/cpp/etc/qpidd.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=An AMQP message broker daemon.
+Documentation=man:qpidd(1) http://qpid.apache.org/
+After=network.target
+
+[Service]
+User=qpidd
+Group=qpidd
+Type=simple
+ExecStart=/usr/sbin/qpidd --config /etc/qpidd.conf
+
+[Install]
+WantedBy=multi-user.target