diff options
Diffstat (limited to 'testing/ovn/ovs-vswitchd.initd')
-rw-r--r-- | testing/ovn/ovs-vswitchd.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/ovn/ovs-vswitchd.initd b/testing/ovn/ovs-vswitchd.initd new file mode 100644 index 00000000000..fe35a96721d --- /dev/null +++ b/testing/ovn/ovs-vswitchd.initd @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvswitch/files/ovs-vswitchd-r1,v 1.1 2013/04/08 19:37:58 dev-zero Exp $ + +description="Open vSwitch virtual switch" + +pidfile="/var/run/openvswitch/ovs-vswitchd.pid" +command="/usr/sbin/ovs-vswitchd" +command_args=" + --pidfile=$pidfile + --detach + --monitor + ${OPTIONS} ${DATABASE}" + +depend() { + need localmount ovsdb-server + after bootmisc hwdrivers modules + before net + use logger +} + +start_pre() { + checkpath --directory "${pidfile%/*}" --mode 0750 +} |