From f7cf149e29f490730f35eb5a14b147ee4e6120f15668eaa9c0d441159c2239a8 Mon Sep 17 00:00:00 2001 From: Johannes Weberhofer Date: Tue, 4 Dec 2012 09:00:14 +0000 Subject: [PATCH] Accepting request 144021 from home:weberho:branches:security Fixed initscript as discussed in bnc#790557 OBS-URL: https://build.opensuse.org/request/show/144021 OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=25 --- fail2ban.changes | 5 +++++ fail2ban.init | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fail2ban.changes b/fail2ban.changes index 605b36a..5c42d84 100644 --- a/fail2ban.changes +++ b/fail2ban.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 3 16:06:56 UTC 2012 - jweberhofer@weberhofer.at + +- Fixed initscript as discussed in bnc#790557 + ------------------------------------------------------------------- Wed Oct 3 09:53:40 UTC 2012 - meissner@suse.com diff --git a/fail2ban.init b/fail2ban.init index 34d5682..6089078 100644 --- a/fail2ban.init +++ b/fail2ban.init @@ -8,6 +8,7 @@ # Should-Stop: $time $network iptables # Default-Start: 3 5 # Default-Stop: 0 1 2 6 +# Pidfile: /var/run/fail2ban/fail2ban.pid # Short-Description: Bans IPs with too many authentication failures # Description: Start fail2ban to scan logfiles and ban IP addresses # which make too many logfiles failures, and/or sent e-mails about @@ -48,7 +49,7 @@ case "$1" in rm $FAIL2BAN_SOCKET fi fi - /sbin/startproc $FAIL2BAN_CLI -q $FAIL2BAN_OPTIONS start &>/dev/null 2>&1 + $FAIL2BAN_CLI -x -q $FAIL2BAN_OPTIONS start &>/dev/null 2>&1 rc_status -v ;; @@ -110,3 +111,4 @@ case "$1" in ;; esac rc_exit +