System V init.d script for the unbound DNS server.
Add the unbound
file from this repo to your server's /etc/init.d/
directory to manage the unbound DNS server using 'service'.
This allows you to run unbound like a standard System V daemon:
$ sudo service unbound status
[ ok ] unbound server is running.
$ sudo service unbound stop
[ ok ] Stopping unbound server: unbound.
$ sudo service unbound status
[FAIL] unbound server is not running ... failed!
$ sudo service unbound start
[ ok ] Starting unbound server: unbound.
$ sudo service unbound status
[ ok ] unbound server is running.
- Assumes config, pid, and chroot directory of
/usr/local/etc/unbound
. This is the default installation when compiling from source anyway