mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-27 18:20:02 -05:00
23 lines
493 B
Bash
Executable file
23 lines
493 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# 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
|
|
# and put unbound_enable="YES" into rc.conf
|
|
#
|
|
|
|
# PROVIDE: unbound
|
|
# REQUIRE: SERVERS cleanvar
|
|
# KEYWORD: shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="unbound"
|
|
rcvar=`set_rcvar`
|
|
|
|
command="/usr/local/sbin/unbound"
|
|
pidfile="/usr/local/etc/unbound/unbound.pid"
|
|
extra_commands="reload"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|