diff --git a/abusehelper/files/botnet.init b/abusehelper/files/botnet.init index c22a0c5..6c3949e 100644 --- a/abusehelper/files/botnet.init +++ b/abusehelper/files/botnet.init @@ -1,6 +1,6 @@ #!/bin/sh -# chkconfig: 2345 90 10 +# chkconfig: 2345 99 01 # description: AbuseHelper botnets # processname: botnet @@ -56,8 +56,11 @@ botnet_action() { } start_botnets() { - for botnet in ${BOTNETS}; do - botnet_action start ${botnet} + set -- ${BOTNETS} + while [ $# -gt 0 ]; do + botnet_action start ${1} + shift + test -n "${1}" && sleep 10 done } @@ -68,8 +71,11 @@ stop_botnets() { } restart_botnets() { - for botnet in ${BOTNETS}; do - botnet_action restart ${botnet} + set -- ${BOTNETS} + while [ $# -gt 0 ]; do + botnet_action restart ${1} + shift + test -n "${1}" && sleep 10 done }