#!/bin/sh
#
# $FreeBSD: ports/dns/ez-ipupdate/files/ez-ipupdate.sh.in,v 1.2 2006/02/20 20:46:57 dougb Exp $
#
# PROVIDE: ez-ipupdate
# REQUIRE:
# BEFORE:
# KEYWORD: shutdown
# Add the following line to /etc/rc.conf to enable ez-ipupdate:
#
#ez_ipupdate_enable="YES"
#
. /etc/rc.subr
name=ez_ipupdate
rcvar=`set_rcvar`
load_rc_config $name
: ${ez_ipupdate_enable="NO"}
: ${ez_ipupdate_pidfile="/var/run/ez-ipupdate.pid"}
: ${ez_ipupdate_configfile="/usr/local/etc/ez-ipupdate.conf"}
: ${ez_ipupdate_flags="-d -c $ez_ipupdate_configfile -F $ez_ipupdate_pidfile"}
command=/usr/local/bin/ez-ipupdate
pidfile=$ez_ipupdate_pidfile
required_files=$ez_ipupdate_configfile
sig_stop=QUIT
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1