Lines 2-8
Link Here
|
2 |
# |
2 |
# |
3 |
# unbound freebsd startup rc.d script, modified from the named script. |
3 |
# unbound freebsd startup rc.d script, modified from the named script. |
4 |
# uses the default unbound installation path and pidfile location. |
4 |
# uses the default unbound installation path and pidfile location. |
5 |
# copy this to /etc/rc.d/unbound |
5 |
# copy this to %%PREFIX%%/etc/rc.d/unbound |
6 |
# and put unbound_enable="YES" into rc.conf |
6 |
# and put unbound_enable="YES" into rc.conf |
7 |
# |
7 |
# |
8 |
|
8 |
|
Lines 16-23
Link Here
|
16 |
rcvar=`set_rcvar` |
16 |
rcvar=`set_rcvar` |
17 |
|
17 |
|
18 |
command="%%PREFIX%%/sbin/unbound" |
18 |
command="%%PREFIX%%/sbin/unbound" |
19 |
pidfile="%%PREFIX%%/etc/unbound/unbound.pid" |
19 |
pidfile="/var/run/${name}.pid" |
20 |
extra_commands="reload" |
20 |
extra_commands="reload" |
21 |
|
21 |
|
22 |
load_rc_config $name |
22 |
load_rc_config $name |
|
|
23 |
: ${unbound_enable:-"NO"} |
24 |
|
23 |
run_rc_command "$1" |
25 |
run_rc_command "$1" |