Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 367819 | Differences between
and this patch

Collapse All | Expand All

(-)a/files/gentoo-initd (-9 / +1 lines)
Lines 19-25 Link Here
19
# 
19
# 
20
# $Revision: 559 $
20
# $Revision: 559 $
21
21
22
opts="start stop restart reload showlog"
22
opts="reload showlog"
23
23
24
FAIL2BAN="/usr/bin/fail2ban-client ${FAIL2BAN_OPTIONS}"
24
FAIL2BAN="/usr/bin/fail2ban-client ${FAIL2BAN_OPTIONS}"
25
25
Lines 41-54 Link Here
41
	eend $? "Failed to stop fail2ban"
41
	eend $? "Failed to stop fail2ban"
42
}
42
}
43
43
44
restart() {
45
	if ! service_stopped "${SVCNAME}" ; then
46
		svc_stop || return "$?"
47
		sleep 1
48
	fi
49
	svc_start
50
}
51
52
reload() {
44
reload() {
53
	ebegin "Reloading fail2ban"
45
	ebegin "Reloading fail2ban"
54
	${FAIL2BAN} reload > /dev/null
46
	${FAIL2BAN} reload > /dev/null

Return to bug 367819