Imported Upstream version 1.10

This commit is contained in:
Jan Wagner 2013-11-06 09:45:01 +01:00
parent b7e2688ac8
commit 2bb3538023
11 changed files with 1272 additions and 0 deletions

36
dnsflood Executable file
View file

@ -0,0 +1,36 @@
#! /bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
test -f /usr/local/sbin/dns_flood_detector || exit 0
case "$1" in
start)
echo -n "Starting DNS flood detector: dns_flood_detector"
start-stop-daemon --start --quiet --exec /usr/local/sbin/dns_flood_detector -- -d
echo "."
;;
stop)
echo -n "Stopping DNS flood detector: dns_flood_detector"
start-stop-daemon --stop --quiet --exec /usr/local/sbin/dns_flood_detector
killall dns_flood_detector
echo "."
;;
restart|force-reload)
echo -n "Restarting DNS flood detector: dns_flood_detector... "
start-stop-daemon --stop --quiet --exec /usr/local/sbin/dns_flood_detector
sleep 2
start-stop-daemon --stop --quiet --exec /usr/local/sbin/dns_flood_detector
sleep 4
killall dns_flood_detector
sleep 2
start-stop-daemon --start --quiet --exec /usr/local/sbin/dns_flood_detector -- -d
echo "done."
;;
*)
echo "Usage: /etc/init.d/dnsflood {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0