blob: 79a947956e37c537bc446e8a539512736cbba98c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Index: fail2ban-0.8.4/files/gentoo-initd
===================================================================
--- fail2ban-0.8.4.orig/files/gentoo-initd
+++ fail2ban-0.8.4/files/gentoo-initd
@@ -31,6 +31,14 @@ depend() {
start() {
ebegin "Starting fail2ban"
+ if [ ! -d /var/run/fail2ban ]; then
+ mkdir /var/run/fail2ban || return 1
+ fi
+ if [ -e /var/run/fail2ban/fail2ban.sock ]; then
+ # remove stalled sock file after system crash
+ # bug 347477
+ rm -rf /var/run/fail2ban/fail2ban.sock || return 1
+ fi
${FAIL2BAN} start &> /dev/null
eend $? "Failed to start fail2ban"
}
|