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\=markup
pull/8/head
Robert Trace 2011-11-18 14:28:08 -05:00 committed by Yaroslav Halchenko
parent fceff2d5b9
commit 5812abb987
1 changed files with 1 additions and 9 deletions

View File

@ -19,7 +19,7 @@
#
# $Revision$
opts="start stop restart reload showlog"
opts="reload showlog"
FAIL2BAN="/usr/bin/fail2ban-client ${FAIL2BAN_OPTIONS}"
@ -41,14 +41,6 @@ stop() {
eend $? "Failed to stop fail2ban"
}
restart() {
if ! service_stopped "${SVCNAME}" ; then
svc_stop || return "$?"
sleep 1
fi
svc_start
}
reload() {
ebegin "Reloading fail2ban"
${FAIL2BAN} reload > /dev/null