Change /tmp/fail2ban.sock to /var/run/fail2ban/fail2ban.sock

pull/316/head
Orion Poplawski 2013-08-08 20:28:55 -06:00
parent e4dad8dfc9
commit 67497db6e5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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