freebsd-ports/dns/ez-ipupdate/files/ez-ipupdate.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

33 lines
629 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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=ez_ipupdate_enable
load_rc_config $name
: ${ez_ipupdate_enable="NO"}
: ${ez_ipupdate_pidfile="/var/run/ez-ipupdate.pid"}
: ${ez_ipupdate_configfile="%%PREFIX%%/etc/ez-ipupdate.conf"}
: ${ez_ipupdate_flags="-d -c $ez_ipupdate_configfile -F $ez_ipupdate_pidfile"}
command=%%PREFIX%%/bin/ez-ipupdate
pidfile=$ez_ipupdate_pidfile
required_files=$ez_ipupdate_configfile
sig_stop=QUIT
run_rc_command "$1"