View Single Post
  #14  
Old 14th May 2008, 14:06
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 17 Times in 14 Posts
Default

I changed it to this:

Code:
# Ad-hoc way to parse out socket file name
SOCKFILE=`grep -h '^[^#]*socket *=' /etc/$NAME/$NAME.conf /etc/$NAME/$NAME.loca$
          | tail -n 1 | sed -e 's/.*socket *= *//g' -e 's/ *$//g'`
[ -z "$SOCKFILE" ] && SOCKFILE='/var/run/fail2ban/fail2ban.sock'
And it still doesn't run. There is no directory /var/run/fail2ban

Code:
admin@myserver:/$ ls -s -h /var/run/fail2ban
ls: cannot access /var/run/fail2ban: No such file or directory
Reply With Quote