mirror of https://github.com/fail2ban/fail2ban
Change /tmp/fail2ban.sock to /var/run/fail2ban/fail2ban.sock
parent
e4dad8dfc9
commit
67497db6e5
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue