summaryrefslogtreecommitdiff
path: root/debian/openvswitch-switch.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openvswitch-switch.service')
-rw-r--r--debian/openvswitch-switch.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/openvswitch-switch.service b/debian/openvswitch-switch.service
new file mode 100644
index 000000000..ef928b3c1
--- /dev/null
+++ b/debian/openvswitch-switch.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Open vSwitch
+Before=network.target
+After=network-pre.target ovsdb-server.service ovs-vswitchd.service
+PartOf=network.target
+Requires=ovsdb-server.service
+Requires=ovs-vswitchd.service
+
+[Service]
+Type=oneshot
+ExecStart=/bin/true
+ExecReload=/usr/share/openvswitch/scripts/ovs-systemd-reload
+ExecStop=/bin/true
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+Also=ovs-record-hostname.service