summaryrefslogtreecommitdiffstats
path: root/testing/openvswitch/ovs-vswitchd.initd
blob: 6bf8bfc53c185a0e1b3807956c54be02fb2d6658 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# 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"

command="/usr/sbin/ovs-vswitchd"
command_args="
    --pidfile
    --detach
    --monitor
    ${OPTIONS} ${DATABASE}"
pidfile="/var/run/openvswitch/ovs-vswitchd.pid"

depend() {
	use ovsdb-server logger
}

start_pre() {
	checkpath -d "/var/run/openvswitch" -m 0750
}