mirror of https://github.com/fail2ban/fail2ban
ENH: Remove obsolete code from gentoo init script. Bug gentoo#367819.
Picked up from http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/files/fail2ban-0.8.4-gentoo-init.patch\?view\=markuppull/8/head
parent
fceff2d5b9
commit
5812abb987
|
@ -19,7 +19,7 @@
|
||||||
#
|
#
|
||||||
# $Revision$
|
# $Revision$
|
||||||
|
|
||||||
opts="start stop restart reload showlog"
|
opts="reload showlog"
|
||||||
|
|
||||||
FAIL2BAN="/usr/bin/fail2ban-client ${FAIL2BAN_OPTIONS}"
|
FAIL2BAN="/usr/bin/fail2ban-client ${FAIL2BAN_OPTIONS}"
|
||||||
|
|
||||||
|
@ -41,14 +41,6 @@ stop() {
|
||||||
eend $? "Failed to stop fail2ban"
|
eend $? "Failed to stop fail2ban"
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
|
||||||
if ! service_stopped "${SVCNAME}" ; then
|
|
||||||
svc_stop || return "$?"
|
|
||||||
sleep 1
|
|
||||||
fi
|
|
||||||
svc_start
|
|
||||||
}
|
|
||||||
|
|
||||||
reload() {
|
reload() {
|
||||||
ebegin "Reloading fail2ban"
|
ebegin "Reloading fail2ban"
|
||||||
${FAIL2BAN} reload > /dev/null
|
${FAIL2BAN} reload > /dev/null
|
||||||
|
|
Loading…
Reference in New Issue