|
|
@ -34,19 +34,19 @@ start() {
|
|
|
|
# remove stalled sock file after system crash
|
|
|
|
# remove stalled sock file after system crash
|
|
|
|
# bug 347477
|
|
|
|
# bug 347477
|
|
|
|
rm -f /var/run/fail2ban/fail2ban.sock || return 1
|
|
|
|
rm -f /var/run/fail2ban/fail2ban.sock || return 1
|
|
|
|
${FAIL2BAN} start &> /dev/null
|
|
|
|
${FAIL2BAN} start
|
|
|
|
eend $? "Failed to start fail2ban"
|
|
|
|
eend $? "Failed to start fail2ban"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping fail2ban"
|
|
|
|
ebegin "Stopping fail2ban"
|
|
|
|
${FAIL2BAN} stop &> /dev/null
|
|
|
|
${FAIL2BAN} stop
|
|
|
|
eend $? "Failed to stop fail2ban"
|
|
|
|
eend $? "Failed to stop fail2ban"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
reload() {
|
|
|
|
reload() {
|
|
|
|
ebegin "Reloading fail2ban"
|
|
|
|
ebegin "Reloading fail2ban"
|
|
|
|
${FAIL2BAN} reload > /dev/null
|
|
|
|
${FAIL2BAN} reload
|
|
|
|
eend $? "Failed to reload fail2ban"
|
|
|
|
eend $? "Failed to reload fail2ban"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|