Lines 5-23
Link Here
|
5 |
|
5 |
|
6 |
# PROVIDE: igmpproxy |
6 |
# PROVIDE: igmpproxy |
7 |
# REQUIRE: NETWORKING |
7 |
# REQUIRE: NETWORKING |
|
|
8 |
# KEYWORD: shutdown |
8 |
|
9 |
|
9 |
# The following variables are provided to control startup of igmpproxy |
10 |
# The following variables are provided to control startup of igmpproxy |
10 |
# rc configuration file (eg /etc/rc.conf): |
11 |
# rc configuration file (eg /etc/rc.conf): |
11 |
# igmpproxy_enable (bool): Set to "NO" by default. |
12 |
# igmpproxy_enable (bool): Set to "NO" by default. |
12 |
# Set it to "YES" to enable igmpproxy. |
13 |
# Set it to "YES" to enable igmpproxy. |
|
|
14 |
# igmpproxy_conf (path): Set full path to configuration file. |
15 |
# Default is "%%PREFIX%%/etc/igmpproxy.conf" |
13 |
|
16 |
|
14 |
. /etc/rc.subr |
17 |
. /etc/rc.subr |
15 |
|
18 |
|
16 |
name="igmpproxy" |
19 |
name="igmpproxy" |
17 |
rcvar=`set_rcvar` |
20 |
rcvar=`set_rcvar` |
18 |
command="%%PREFIX%%/sbin/${name}" |
21 |
procname="%%PREFIX%%/sbin/${name}" |
|
|
22 |
command=/usr/sbin/daemon |
19 |
required_files="%%PREFIX%%/etc/igmpproxy.conf" |
23 |
required_files="%%PREFIX%%/etc/igmpproxy.conf" |
20 |
igmpproxy_enable=${igmpproxy_enable-"NO"} |
|
|
21 |
|
24 |
|
22 |
load_rc_config $name |
25 |
load_rc_config $name |
|
|
26 |
|
27 |
igmpproxy_enable=${igmpproxy_enable-"NO"} |
28 |
igmpproxy_conf=${igmpproxy_config-"%%PREFIX%%/etc/igmpproxy.conf"} |
29 |
|
30 |
command_args=" -cf $procname $igmpproxy_conf" |
31 |
|
23 |
run_rc_command "$1" |
32 |
run_rc_command "$1" |