Merge pull request #316 from opoplawski/paths

Change /tmp/fail2ban.sock to /var/run/fail2ban/fail2ban.sock
pull/317/merge
Yaroslav Halchenko 2013-08-08 19:37:48 -07:00
commit e75fa74994
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class Fail2banReader(ConfigReader):
ConfigReader.read(self, "fail2ban")
def getEarlyOptions(self):
opts = [["string", "socket", "/tmp/fail2ban.sock"],
opts = [["string", "socket", "/var/run/fail2ban/fail2ban.sock"],
["string", "pidfile", "/var/run/fail2ban/fail2ban.pid"]]
return ConfigReader.getOptions(self, "Definition", opts)

View File

@ -35,7 +35,7 @@ HELP:
/etc/init.d/fail2ban stop
2.) delete the socket if available
rm /tmp/fail2ban.sock
rm /var/run/fail2ban/fail2ban.sock
3.) start the Service
/etc/init.d/fail2ban start