From: <los...@us...> - 2009-01-20 21:24:41
|
Revision: 718 http://fail2ban.svn.sourceforge.net/fail2ban/?rev=718&view=rev Author: lostcontrol Date: 2009-01-20 21:24:33 +0000 (Tue, 20 Jan 2009) Log Message: ----------- - Remove socket file on startup is fail2ban crashed. Thanks to Detlef Reichelt. Modified Paths: -------------- branches/FAIL2BAN-0_8/ChangeLog branches/FAIL2BAN-0_8/files/suse-initd Modified: branches/FAIL2BAN-0_8/ChangeLog =================================================================== --- branches/FAIL2BAN-0_8/ChangeLog 2008-10-13 14:56:54 UTC (rev 717) +++ branches/FAIL2BAN-0_8/ChangeLog 2009-01-20 21:24:33 UTC (rev 718) @@ -20,6 +20,8 @@ - Added/improved filters and date formats. - Added actions to report abuse to ISP, DShield and myNetWatchman. Thanks to Russell Odom. +- Suse init script. Remove socket file on startup is fail2ban + crashed. Thanks to Detlef Reichelt. ver. 0.8.3 (2008/07/17) - stable ---------- Modified: branches/FAIL2BAN-0_8/files/suse-initd =================================================================== --- branches/FAIL2BAN-0_8/files/suse-initd 2008-10-13 14:56:54 UTC (rev 717) +++ branches/FAIL2BAN-0_8/files/suse-initd 2009-01-20 21:24:33 UTC (rev 718) @@ -35,6 +35,13 @@ case "$1" in start) echo -n "Starting Fail2Ban " + # a cleanup workaround, since /etc/init.d/boot.local removes only. + # regular files, and not sockets + if test -e $FAIL2BAN_SOCKET; then + if ! lsof -n $FAIL2BAN_SOCKET &>/dev/null; then + rm $FAIL2BAN_SOCKET + fi + fi /sbin/startproc $FAIL2BAN_BIN start &>/dev/null rc_status -v ;; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |