diff options
Diffstat (limited to 'community/fail2ban/fail2ban.rc')
-rw-r--r-- | community/fail2ban/fail2ban.rc | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/community/fail2ban/fail2ban.rc b/community/fail2ban/fail2ban.rc deleted file mode 100644 index f4c28a814..000000000 --- a/community/fail2ban/fail2ban.rc +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -FAIL2BAN="/usr/bin/fail2ban-client" - -case "$1" in - start) - stat_busy "Starting fail2ban" - $FAIL2BAN start >/dev/null - if [ $? -gt 0 ]; then - stat_fail - else - add_daemon fail2ban - stat_done - fi - ;; - stop) - stat_busy "Stopping fail2ban" - if [ "`$FAIL2BAN stop`" == "Shutdown successful" ]; then - rm_daemon fail2ban - stat_done - else - stat_fail - fi - ;; - restart) - $0 stop - sleep 3 - $0 start - ;; - *) - echo "usage: $0 {start|stop|restart}" -esac -exit 0 |