# description: Fail2ban daemon
# http://fail2ban.sourceforge.net/wiki/index.php/Main_Page
# process name: fail2ban-server
-# pidfile: /var/run/fail2ban.pid
+# pidfile: /var/run/fail2ban/fail2ban.pid
# config: /etc/fail2ban/fail2ban.conf
#
# Check if the service is already running?
if [ ! -f /var/lock/subsys/fail2ban ]; then
msg_starting fail2ban
- daemon /usr/bin/fail2ban-client start
+ daemon --pidfile /var/run/fail2ban/fail2ban.pid /usr/bin/fail2ban-client start
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/fail2ban
else
# Stop daemons.
if [ -f /var/lock/subsys/fail2ban ]; then
msg_stopping fail2ban
- daemon /usr/bin/fail2ban-client stop
- rm -f /var/lock/subsys/fail2ban /var/run/fail2ban.pid >/dev/null 2>&1
+ daemon --pidfile /var/run/fail2ban/fail2ban.pid /usr/bin/fail2ban-client stop
+ rm -f /var/lock/subsys/fail2ban /var/run/fail2ban/fail2ban.pid >/dev/null 2>&1
else
msg_not_running fail2ban
fi
condrestart 7
;;
status)
- status fail2ban
+ status --pidfile /var/run/fail2ban/fail2ban.pid fail2ban
RETVAL=$?
/usr/bin/fail2ban-client status
;;
Summary: Ban IPs that make too many password failures
Summary(pl.UTF-8): Blokowanie IP powodujących zbyt dużo prób logowań z błędnym hasłem
Name: fail2ban
-Version: 0.9.1
+Version: 0.9.4
Release: 0.1
License: GPL
Group: Daemons
Source0: https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz
-# Source0-md5: 3554cc3de3f06ddfd7f90f8305b765b8
+# Source0-md5: 2dc93dff03c4da9fb95d4695e07b65d8
Source1: %{name}.init
Source2: %{name}.logrotate
Source3: paths-pld.conf
# The DEFAULT allows a global definition of the options. They can be overridden
# in each jail afterwards.
-@@ -723,4 +723,4 @@
- [portsentry]
- enabled = false
- logpath = /var/lib/portsentry/portsentry.history
--maxretry = 1
-\ Brak znaku nowej linii na końcu pliku
-+maxretry = 1