Changes of Revision 4
[-] [+] | Changed | fail2ban.changes |
[-] [+] | Changed | fail2ban.init ^ |
@@ -64,6 +64,10 @@ if [ ! -d $FAIL2BAN_SOCK_DIR ]; then mkdir -p $FAIL2BAN_SOCK_DIR fi + # cleanup stale socket file + if [ -r $FAIL2BAN_SOCK_DIR/fail2ban.sock && ! -r /var/run/fail2ban/fail2ban.pid ] ; then + rm -f $FAIL2BAN_SOCK_DIR/fail2ban.sock + fi ## Start daemon with startproc(8). If this fails ## the return value is set appropriately by startproc. startproc $FAIL2BAN_CLI -q start > /dev/null 2>&1 |