diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-11 22:54:43 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 22:54:43 +0200 |
commit | d12891f9e75139ed1eadb243574ce5cf4b2a60cb (patch) | |
tree | 6a7b2a265d388178dca877de78ad595f55cf0a39 /network/dnsflood/rc.dnsflood | |
parent | 56562396e7a7d0b151cdb1ef2442a85d30a38957 (diff) | |
download | slackbuilds-d12891f9e75139ed1eadb243574ce5cf4b2a60cb.tar.gz |
network/dnsflood: Added to 12.1 repository
Diffstat (limited to 'network/dnsflood/rc.dnsflood')
-rw-r--r-- | network/dnsflood/rc.dnsflood | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/network/dnsflood/rc.dnsflood b/network/dnsflood/rc.dnsflood new file mode 100644 index 0000000000..011e5c88c9 --- /dev/null +++ b/network/dnsflood/rc.dnsflood @@ -0,0 +1,37 @@ +#!/bin/sh + +dnsflood_start() { + if [ -x /usr/sbin/dns_flood_detector ]; then + echo "Starting DNS Flood Detector: /usr/sbin/dns_flood_detector -d" + /usr/sbin/dns_flood_detector -d + fi + +} + +dnsflood_stop() { + killall dns_flood_detector + +} + +dnsflood_restart() { + dnsflood_stop + sleep 1 + dnsflood_start + +} + +case "$1" in +'start') + dnsflood_start + ;; +'stop') + dnsflood_stop + ;; +'restart') + dnsflood_restart + ;; +*) + echo "Usage: $0 start|stop|restart" + exit 1 +esac + |