You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fail2ban/fail2ban-0.8.1-init.patch

23 lines
831 B

diff -up fail2ban-0.8.1/files/redhat-initd.init fail2ban-0.8.1/files/redhat-initd
diff -up fail2ban-0.8.1/files/redhat-initd.init fail2ban-0.8.1/files/redhat-initd
--- fail2ban-0.8.1/files/redhat-initd.init 2007-07-11 23:09:45.000000000 +0100
+++ fail2ban-0.8.1/files/redhat-initd 2008-01-31 22:37:29.000000000 +0000
@@ -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 @@ start() {
echo -n $"Starting fail2ban: "
getpid
if [ -z "$pid" ]; then
- rm -rf /tmp/fail2ban.sock # in case of unclean shutdown
- $FAIL2BAN start > /dev/null
+ $FAIL2BAN -x start > /dev/null
RETVAL=$?
fi
if [ $RETVAL -eq 0 ]; then