Solved Unbound rc.d script

Hi,

I was messing with my Unbound config and screwed up. I'd like to use the built-in Unbound in /usr/sbin, but my rc.d script is calling the user land package.

Can someone post a copy of a correct/default base rc.d script for unbound?

Thank you.

Edit: Better yet, is there a convenient way to reinstall the Unbound from base, so that I can be absolutely certain everything is correct?

I'd rather not recompile base though...
 
Last edited by a moderator:
Assuming you've got the proper /usr/src for your system already, /usr/src/etc/rc.d/local_unbound should be the file. You can just copy it, overwriting your modified /etc/rc.d/local_unbound.

You shouldn't need to rebuild/reinstall Unbound itself, but if you do:
  • cd /usr/src/lib/libunbound && make obj && make depend all install
  • cd /usr/src/usr.sbin/unbound && make obj && make depend all install
You also could browse svn at https://svn.freebsd.org/base/ (keeping in mind if you're using -STABLE or -CURRENT you'll have to dig through revision histories to find the revision you're using).
 
Back
Top