summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2004-07-26 23:23:57 +0000
committerStefan Eßer <se@FreeBSD.org>2004-07-26 23:23:57 +0000
commite730fac3f6140ccc5c510beacf6c3bebbc1cc8bb (patch)
treee8bc840dd260242c91515f19c084b52ba03d242d /dns
parentInstall startup script with expanded. (diff)
Adjust to be compatible with rev. 1.2 of /etc/rc.d/localpkg
Notes
Notes: svn path=/head/; revision=114818
Diffstat (limited to 'dns')
-rw-r--r--dns/ez-ipupdate/files/ez-ipupdate.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/dns/ez-ipupdate/files/ez-ipupdate.sh b/dns/ez-ipupdate/files/ez-ipupdate.sh
index f68734ff71c1..33e3a99997a2 100644
--- a/dns/ez-ipupdate/files/ez-ipupdate.sh
+++ b/dns/ez-ipupdate/files/ez-ipupdate.sh
@@ -13,18 +13,20 @@
#ez_ipupdate_enable="YES"
#
+: ${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"}
+
. %%RC_SUBR%%
name=ez_ipupdate
rcvar=`set_rcvar`
command=%%PREFIX%%/bin/ez-ipupdate
-pidfile=/var/run/ez-ipupdate.pid
-required_files=%%PREFIX%%/etc/ez-ipupdate.conf
-sig_stop="QUIT"
-
-ez_ipupdate_enable="NO"
-ez_ipupdate_flags="-c %%PREFIX%%/etc/ez-ipupdate.conf -d -F $pidfile"
+pidfile=$ez_ipupdate_pidfile
+required_files=$ez_ipupdate_configfile
+sig_stop=QUIT
load_rc_config $name
run_rc_command "$1"