summaryrefslogtreecommitdiffstats
path: root/dns/ez-ipupdate
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>2004-07-26 23:23:57 +0000
committerse <se@FreeBSD.org>2004-07-26 23:23:57 +0000
commite2963debcbf35e479cfb945d02825b18091a1086 (patch)
treef3101879c54ca2367e53ce11dac6a0f7e63c2498 /dns/ez-ipupdate
parent8bf20a51e315f83676ab8a3844f17bc2ef9163bc (diff)
downloadFreeBSD-ports-e2963debcbf35e479cfb945d02825b18091a1086.zip
FreeBSD-ports-e2963debcbf35e479cfb945d02825b18091a1086.tar.gz
Adjust to be compatible with rev. 1.2 of /etc/rc.d/localpkg
Diffstat (limited to 'dns/ez-ipupdate')
-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 f68734f..33e3a99 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"
OpenPOWER on IntegriCloud