summaryrefslogtreecommitdiff
path: root/install-files/openstack/usr/lib/systemd/system/openvswitch.service
diff options
context:
space:
mode:
Diffstat (limited to 'install-files/openstack/usr/lib/systemd/system/openvswitch.service')
-rw-r--r--install-files/openstack/usr/lib/systemd/system/openvswitch.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/install-files/openstack/usr/lib/systemd/system/openvswitch.service b/install-files/openstack/usr/lib/systemd/system/openvswitch.service
new file mode 100644
index 00000000..113911f6
--- /dev/null
+++ b/install-files/openstack/usr/lib/systemd/system/openvswitch.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Open vSwitch Daemon
+Before=network-pre.target
+Wants=network-pre.target
+
+[Service]
+Type=forking
+ExecStartPre=-/usr/bin/mkdir -p /var/run/openvswitch
+ExecStart=/usr/sbin/ovs-vswitchd --pidfile --detach
+
+[Install]
+WantedBy=multi-user.target