summaryrefslogtreecommitdiff
path: root/debian/openvswitch-switch.ovs-vswitchd.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openvswitch-switch.ovs-vswitchd.service')
-rw-r--r--debian/openvswitch-switch.ovs-vswitchd.service26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/openvswitch-switch.ovs-vswitchd.service b/debian/openvswitch-switch.ovs-vswitchd.service
new file mode 100644
index 000000000..519d80d8e
--- /dev/null
+++ b/debian/openvswitch-switch.ovs-vswitchd.service
@@ -0,0 +1,26 @@
+[Unit]
+Description=Open vSwitch Forwarding Unit
+After=ovsdb-server.service network-pre.target systemd-udev-settle.service
+Before=network.target networking.service
+Requires=ovsdb-server.service
+ReloadPropagatedFrom=ovsdb-server.service
+AssertPathIsReadWrite=/var/run/openvswitch/db.sock
+PartOf=openvswitch-switch.service
+DefaultDependencies=no
+
+[Service]
+LimitNOFILE=1048576
+Type=forking
+Restart=on-failure
+Environment=HOME=/var/run/openvswitch
+EnvironmentFile=-/etc/default/openvswitch-switch
+ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
+ --no-ovsdb-server --no-monitor --system-id=random \
+ --no-record-hostname \
+ start $OVS_CTL_OPTS
+ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop
+ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server \
+ --no-monitor --system-id=random \
+ --no-record-hostname \
+ restart $OVS_CTL_OPTS
+TimeoutSec=300