mailinabox/services/fail2ban.sh

10 lines
143 B
Bash
Executable File

#!/bin/bash
PROCESS=fail2ban
/etc/init.d/$PROCESS start
while [ `ps aux | grep fail2ban | grep -v grep | wc -l` -gt 0 ]; do
sleep 30
done