gentoo-ebuilds/net-misc/openvswitch/files/ovs-vswitchd-r1
Matthew Thode 0a3a711dce
net-misc/openvswitch: switch all runtime dirs to /run
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
2023-05-06 11:32:57 -05:00

21 lines
428 B
Text

#!/sbin/openrc-run
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
description="Open vSwitch virtual switch"
command="/usr/sbin/ovs-vswitchd"
command_args="
--pidfile
--detach
--monitor
${OPTIONS} ${DATABASE}"
pidfile="/run/openvswitch/ovs-vswitchd.pid"
depend() {
use ovsdb-server logger
}
start_pre() {
checkpath -d "/run/openvswitch" -m 0750
}