#!/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"

load_rc_config $name

command="/usr/sbin/unbound"
pidfile=${unbound_pidfile:-"/var/unbound/unbound.pid"}
command_args=${unbound_flags:-"-c /var/unbound/unbound.conf"}
extra_commands="reload"

run_rc_command "$1"
