diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-20 16:45:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-04-20 16:45:50 +0000 |
commit | eb33925609c209ce4370a6406f014eb9d6c81722 (patch) | |
tree | 082a09183ec6e218eba58c785277bb58a76e8512 /main/fail2ban/gentoo-initd_create_run_dir.patch | |
parent | 2db6c6cae02eeead53b9ad09da0087c928bc29de (diff) | |
download | aports-eb33925609c209ce4370a6406f014eb9d6c81722.tar.bz2 aports-eb33925609c209ce4370a6406f014eb9d6c81722.tar.xz |
main/fail2ban: moved from testing
fixes #525
Diffstat (limited to 'main/fail2ban/gentoo-initd_create_run_dir.patch')
-rw-r--r-- | main/fail2ban/gentoo-initd_create_run_dir.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main/fail2ban/gentoo-initd_create_run_dir.patch b/main/fail2ban/gentoo-initd_create_run_dir.patch new file mode 100644 index 0000000000..79a947956e --- /dev/null +++ b/main/fail2ban/gentoo-initd_create_run_dir.patch @@ -0,0 +1,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" + } |