#!/bin/sh # # $FreeBSD: head/dns/dnsflood/files/dnsflood.in 340872 2014-01-24 00:14:07Z mat $ # # 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"