summaryrefslogtreecommitdiff
path: root/openstack/etc/systemd/system/openvswitch-db-server.service
diff options
context:
space:
mode:
authorFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2014-12-12 09:34:20 +0000
committerFrancisco Redondo Marchena <francisco.marchena@codethink.co.uk>2015-01-22 12:46:28 +0000
commit6f958f1b6f2bf9ef6d48d57970584f18e8e1a041 (patch)
tree62dca5a1145b73f876f5f895591c5289fd77e8e7 /openstack/etc/systemd/system/openvswitch-db-server.service
parent91bca0532e8faf196623c8dc311a775aeca852f2 (diff)
downloaddefinitions-6f958f1b6f2bf9ef6d48d57970584f18e8e1a041.tar.gz
Strip openvswitch services and configuration from neutron
Openvswitch should have its own setup and daemon services independent of neutron. NOTE: This fixes the errors when neutron uses openvswitch commands as root because openvswitch services are run as root.
Diffstat (limited to 'openstack/etc/systemd/system/openvswitch-db-server.service')
-rw-r--r--openstack/etc/systemd/system/openvswitch-db-server.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/openstack/etc/systemd/system/openvswitch-db-server.service b/openstack/etc/systemd/system/openvswitch-db-server.service
new file mode 100644
index 00000000..8fc5ecb1
--- /dev/null
+++ b/openstack/etc/systemd/system/openvswitch-db-server.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Open vSwitch Database server Daemon
+Requires=openvswitch-setup.service
+After=openvswitch-setup.service
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --pidfile --detach
+
+[Install]
+WantedBy=multi-user.target
+