#!/bin/sh
#
# PROVIDE: fetchzone
# BEFORE: maradns
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable fetchzone:
#
# fetchzone_enable="YES"
#
. /etc/rc.subr

name=fetchzone
rcvar=`set_rcvar`

command_interpreter=/bin/sh
command=/usr/local/sbin/fetchzone.sh
command_args="&"

load_rc_config ${name}

fetchzone_enable=${fetchzone_enable-"NO"}
fetchzone_pidfile=${fetchzone_pidfile-"/var/run/fetchzone.pid"}
pidfile="${fetchzone_pidfile}"

run_rc_command "$1"
