On Tue, May 27, 2014 at 05:46:20PM +0100, Stuart Henderson wrote: > On 2014/05/27 14:13, Martin, Matthew wrote: > > I'm moving to unbound in preparation for 5.6. Trying to start unbound > > on boot with pkg_scripts would always fail; however, starting it > > manually would succeed. This seems to be because /etc/rc does not have > > /usr/local/sbin in it's PATH and /etc/rc.d/unbound calls > > unbound-control-setup. The below patch should fix this problem. > > > > Index: unbound.rc > > =================================================================== > > RCS file: /cvs/ports/net/unbound/pkg/unbound.rc,v > > retrieving revision 1.3 > > diff -u -p -r1.3 unbound.rc > > --- unbound.rc 4 Aug 2012 20:43:54 -0000 1.3 > > +++ unbound.rc 26 May 2014 22:46:42 -0000 > > @@ -14,7 +14,7 @@ rc_pre() { > > if ! [[ -f /var/unbound/etc/unbound_server.pem || > > -f /var/unbound/etc/unbound_control.key || > > -f /var/unbound/etc/unbound_control.pem ]]; then > > - unbound-control-setup >/dev/null 2>&1 > > + ${TRUEPREFIX}/sbin/unbound-control-setup >/dev/null 2>&1 > > fi > > } > > > > -Matthew Martin > > > > I've not had any problems with this when I was using unbound from ports; > I believe this is using the default path from login.conf... does your copy > include /usr/local/sbin ?
unbound-control-setup is not run using rcexec, so I "think" that is the reason the path from login.conf is not used in this case. -- Antoine