]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - fail2ban/patches/fail2ban-0.8.3-init.patch
Move all packages to root.
[people/amarx/ipfire-3.x.git] / fail2ban / patches / fail2ban-0.8.3-init.patch
diff --git a/fail2ban/patches/fail2ban-0.8.3-init.patch b/fail2ban/patches/fail2ban-0.8.3-init.patch
new file mode 100644 (file)
index 0000000..3ed8609
--- /dev/null
@@ -0,0 +1,20 @@
+--- fail2ban-0.8.3/files/redhat-initd.init     2008-03-10 23:36:22.000000000 +0100
++++ fail2ban-0.8.3/files/redhat-initd  2008-08-24 20:46:01.000000000 +0200
+@@ -1,6 +1,6 @@
+ #!/bin/bash
+ #
+-# chkconfig: 345 92 08
++# chkconfig: - 92 08
+ # description: Fail2ban daemon
+ #              http://fail2ban.sourceforge.net/wiki/index.php/Main_Page
+ # process name: fail2ban-server
+@@ -27,8 +27,7 @@
+     echo -n $"Starting fail2ban: "
+     getpid
+     if [ -z "$pid" ]; then
+-      rm -rf /var/run/fail2ban/fail2ban.sock # in case of unclean shutdown
+-        $FAIL2BAN start > /dev/null
++        $FAIL2BAN -x start > /dev/null
+         RETVAL=$?
+     fi
+     if [ $RETVAL -eq 0 ]; then