summaryrefslogtreecommitdiffstats
path: root/build/rpm_specs
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2017-01-09 14:23:37 -0500
committerDan Radez <dradez@redhat.com>2017-02-22 09:44:00 -0500
commite1a633529c06a63f9c710317f25e63b8bd574812 (patch)
tree45a1be116c6d637e506f2c476ad04d2df76a9d81 /build/rpm_specs
parent1cc0506020c9337dd5d47a7da5c69a5045b4f0fa (diff)
Adding congress support back into Danube
opnfv-tht-pr: 97 opnfv-puppet-tripleo-pr: 10 Change-Id: Idfc109fc984f20b096a23d12864a027146a9c74c Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'build/rpm_specs')
-rw-r--r--build/rpm_specs/openstack-congress-server.service13
-rw-r--r--build/rpm_specs/openstack-congress.spec4
2 files changed, 15 insertions, 2 deletions
diff --git a/build/rpm_specs/openstack-congress-server.service b/build/rpm_specs/openstack-congress-server.service
new file mode 100644
index 00000000..20c3a67b
--- /dev/null
+++ b/build/rpm_specs/openstack-congress-server.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=OpenStack Congress Server
+After=syslog.target network.target
+
+[Service]
+Type=simple
+User=congress
+ExecStart=/usr/bin/congress-server --config-file /etc/congress/congress.conf --log-file /var/log/congress/congress.log
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/build/rpm_specs/openstack-congress.spec b/build/rpm_specs/openstack-congress.spec
index f08cd0d0..21211932 100644
--- a/build/rpm_specs/openstack-congress.spec
+++ b/build/rpm_specs/openstack-congress.spec
@@ -40,7 +40,7 @@ install etc/policy.json %{buildroot}/etc/congress/policy.json
tox -e genconfig --workdir ../.tox
install etc/congress.conf.sample %{buildroot}/etc/congress/congress.conf
-install -p -D -m 644 openstack-congress.service %{buildroot}%{_unitdir}/openstack-congress.service
+install -p -D -m 644 openstack-congress-server.service %{buildroot}%{_unitdir}/openstack-congress-server.service
install -d -m 755 %{buildroot}%{_sharedstatedir}/congress
%pre
@@ -66,7 +66,7 @@ exit 0
/etc/congress/policy.json
/usr/bin/congress-db-manage
/usr/bin/congress-server
-%{_unitdir}/openstack-congress.service
+%{_unitdir}/openstack-congress-server.service
/usr/lib/python2.7/site-packages/congress
/usr/lib/python2.7/site-packages/congress_dashboard
/usr/lib/python2.7/site-packages/antlr3runtime