#!/bin/sh
#
# $NetBSD: lwresd.sh,v 1.1.1.1 2014/07/02 02:42:58 jnemeth Exp $
#
# PROVIDE: lwresd
# REQUIRE: SERVERS

. /etc/rc.subr

name="lwresd"
rcvar=${name}
command="/usr/pkg/sbin/${name}"
pidfile="/var/run/lwresd/${name}.pid"
extra_commands="reload"
start_precmd="lwresd_precmd"

lwresd_precmd()
{
	if [ ! -d /var/run/lwresd ]; then
		/bin/mkdir -p /var/run/lwresd
	fi
}

load_rc_config ${name}		# check /etc/rc.conf.d/named9
run_rc_command "$1"
