diff options
-rw-r--r-- | cpp/etc/Makefile.am | 8 | ||||
-rw-r--r-- | cpp/etc/qpidd.service.in | 13 |
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 |