aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnsflood
diff options
context:
space:
mode:
authorzi <zi@FreeBSD.org>2012-05-18 04:41:44 +0800
committerzi <zi@FreeBSD.org>2012-05-18 04:41:44 +0800
commit7df6f6a77eeb2efed85bf44861a2f0729c86d34a (patch)
tree76074840df2d4628397602ab2f1eb197ebadd8c9 /dns/dnsflood
parent4bb0a23dc0853ee0cbc7de4b8b0367c7a7f61108 (diff)
downloadfreebsd-ports-gnome-7df6f6a77eeb2efed85bf44861a2f0729c86d34a.tar.gz
freebsd-ports-gnome-7df6f6a77eeb2efed85bf44861a2f0729c86d34a.tar.zst
freebsd-ports-gnome-7df6f6a77eeb2efed85bf44861a2f0729c86d34a.zip
- Resolve rc script issues
Diffstat (limited to 'dns/dnsflood')
-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"