1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/dns/dnsflood/files/dnsflood.in
2012-05-17 20:41:44 +00:00

28 lines
381 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# 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=%%PREFIX%%/sbin/dns_flood_detector
command_args="-d"
dnsflood_enable=${dnsflood_enable:-"NO"}
run_rc_command "$1"