#!/bin/sh
#
# $FreeBSD: ports/dns/dnsflood/files/dnsflood.in,v 1.3 2012/11/17 05:57:08 svnexp Exp $
#

# PROVIDE: dnsflood
# REQUIRE: NETWORKING
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dnsflood:
#
# dnsflood_enable="YES"
#

. /etc/rc.subr

name=dnsflood
rcvar=dnsflood_enable

load_rc_config $name

command=/usr/local/sbin/dns_flood_detector
command_args="-d"

dnsflood_enable=${dnsflood_enable:-"NO"}

run_rc_command "$1"
