aboutsummaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2012-05-17 20:41:44 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2012-05-17 20:41:44 +0000
commit63f97a3e04cb9fa54ed6dc84a12639e1c1347f3a (patch)
treed69df218ffb5581fb4751e7e20d6db2394d69172 /dns
parent44073f904f899b553a4df5f2284ded7b9eb5d0a0 (diff)
downloadports-63f97a3e04cb9fa54ed6dc84a12639e1c1347f3a.tar.gz
ports-63f97a3e04cb9fa54ed6dc84a12639e1c1347f3a.zip
- Resolve rc script issues
Notes
Notes: svn path=/head/; revision=296863
Diffstat (limited to 'dns')
-rw-r--r--dns/dnsflood/files/dnsflood.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/dns/dnsflood/files/dnsflood.in b/dns/dnsflood/files/dnsflood.in
index 7bbc14f2e501..46ad7c433dff 100644
--- a/dns/dnsflood/files/dnsflood.in
+++ b/dns/dnsflood/files/dnsflood.in
@@ -6,7 +6,6 @@
# PROVIDE: dnsflood
# REQUIRE: NETWORKING
# KEYWORD: shutdown
-
#
# Add the following lines to /etc/rc.conf to enable dnsflood:
#
@@ -16,13 +15,13 @@
. /etc/rc.subr
name=dnsflood
-rcvar=`set_rcvar`
+rcvar=dnsflood_enable
+
+load_rc_config $name
command=%%PREFIX%%/sbin/dns_flood_detector
command_args="-d"
-# set defaults
dnsflood_enable=${dnsflood_enable:-"NO"}
-load_rc_config $name
run_rc_command "$1"