#!/bin/sh
#
# $NetBSD: mydns.sh,v 1.2 2011/10/07 22:37:04 shattered Exp $
#
# PROVIDE: mydns
# REQUIRE: SERVERS
# BEFORE: DAEMON

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="mydns"
rcvar=$name
command="/usr/pkg/sbin/mydns"
command_args="-b"
required_files="/usr/pkg/etc/mydns.conf"
extra_commands="reload"
reload_sig="HUP"

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	echo -n " ${name}$"
	${command} ${command_args} ${mydns_flags}
fi
