summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2018-12-19 15:06:12 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2018-12-19 15:06:56 -0600
commit7750fade80482bf075e56f4eabd52423c314fe69 (patch)
treea58003668826f6a4c4c6dbcc74686d30c66c8e03 /net-misc/openvswitch/files/ovs-vswitchd-r2.service
parentdev-python/ovs: 2.10.0 bump (diff)
downloadgentoo-7750fade80482bf075e56f4eabd52423c314fe69.tar.gz
gentoo-7750fade80482bf075e56f4eabd52423c314fe69.tar.bz2
gentoo-7750fade80482bf075e56f4eabd52423c314fe69.zip
net-misc/openvswitch: 2.10.1 bump
Closes: https://bugs.gentoo.org/673438 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'net-misc/openvswitch/files/ovs-vswitchd-r2.service')
-rw-r--r--net-misc/openvswitch/files/ovs-vswitchd-r2.service26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/openvswitch/files/ovs-vswitchd-r2.service b/net-misc/openvswitch/files/ovs-vswitchd-r2.service
new file mode 100644
index 00000000000..3092fdaaa66
--- /dev/null
+++ b/net-misc/openvswitch/files/ovs-vswitchd-r2.service
@@ -0,0 +1,26 @@
+[Unit]
+Description=Open vSwitch Daemon
+Documentation=man:ovs-vswitchd
+Wants=network.target
+Before=network.target network.service
+Requires=ovsdb-server.service
+After=ovsdb-server.service network-pre.target systemd-udev-settle.service
+ReloadPropagatedFrom=ovsdb-server.service
+AssertPathIsReadWrite=/var/run/openvswitch/db.sock
+
+[Service]
+Type=forking
+Restart=on-failure
+Environment=HOME=/var/run/openvswitch
+EnvironmentFile=-/run/openvswitch/useropts
+EnvironmentFile=-/etc/conf.d/ovs-vswitchd
+ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \
+ --no-ovsdb-server --no-monitor --system-id=random \
+ ${OVSUSER} start $OPTIONS
+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 ${OVSUSER} restart $OPTIONS
+TimeoutSec=300
+
+[Install]
+WantedBy=multi-user.target