blob: 011e5c88c9322bca191bbd4441dc7328792fb689 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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
|