commit d223ef0dad313d20b9e10b9c34340a612e9c1a32
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Tue Dec 12 10:10:20 2023 +0100

    rel 3; insist on starting in case like: Fail2ban seems to be in unexpected 
state (not running but the socket exists) when we think (via subsys) that 
service is not running

 fail2ban.init | 1 +
 fail2ban.spec | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/fail2ban.spec b/fail2ban.spec
index 2958492..4ae6a88 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -2,7 +2,7 @@ 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:       1.0.2
-Release:       2
+Release:       3
 License:       GPL
 Group:         Daemons
 Source0:       https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz
diff --git a/fail2ban.init b/fail2ban.init
index 306da18..23d60b6 100644
--- a/fail2ban.init
+++ b/fail2ban.init
@@ -35,6 +35,7 @@ fi
 start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/fail2ban ]; then
+               rm -f /var/run/fail2ban/fail2ban.sock > /dev/null 2>&1
                msg_starting fail2ban
                daemon --pidfile /var/run/fail2ban/fail2ban.pid 
/usr/bin/fail2ban-client start
                RETVAL=$?
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fail2ban.git/commitdiff/d223ef0dad313d20b9e10b9c34340a612e9c1a32

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to