--- unbound.in 2008-05-07 12:33:37.000000000 +0100 +++ unbound.in.patched 2010-01-10 18:13:31.000000000 +0000 @@ -2,7 +2,7 @@ # # unbound freebsd startup rc.d script, modified from the named script. # uses the default unbound installation path and pidfile location. -# copy this to /etc/rc.d/unbound +# copy this to %%PREFIX%%/etc/rc.d/unbound # and put unbound_enable="YES" into rc.conf # @@ -16,8 +16,10 @@ rcvar=`set_rcvar` command="%%PREFIX%%/sbin/unbound" -pidfile="%%PREFIX%%/etc/unbound/unbound.pid" +pidfile="/var/run/${name}.pid" extra_commands="reload" load_rc_config $name +: ${unbound_enable:-"NO"} + run_rc_command "$1"