blob: dd6e3dbf955ee5118bc2d3fbfd5e1828effd0072 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: ovs_vswitchd
# REQUIRE: LOGIN ovsdb_server
# KEYWORD: shutdown
. /etc/rc.subr
name="ovs_vswitchd"
rcvar=ovs_vswitchd_enable
command="/usr/local/sbin/ovs-vswitchd"
start_precmd="ovs_vswitchd_precmd"
load_rc_config $name
: ${ovs_vswitchd_enable="NO"}
: ${ovs_vswitchd_flags=""}
: ${ovs_vswitchd_logfile="/var/log/openvswitch/${name}.log"}
: ${ovs_vswitchd_pidfile="/var/run/openvswitch/${name}.pid"}
ovs_vswitchd_precmd() {
load_kld if_tap || return 1
}
command_args="--detach --log-file=${ovs_vswitchd_logfile} \
--pidfile=${ovs_vswitchd_pidfile} ${ovs_vswitchd_flags}"
run_rc_command "$1"
|