Browse Source

Merge pull request #316 from opoplawski/paths

Change /tmp/fail2ban.sock to /var/run/fail2ban/fail2ban.sock
pull/317/merge
Yaroslav Halchenko 11 years ago
parent
commit
e75fa74994
  1. 2
      client/fail2banreader.py
  2. 2
      files/nagios/README

2
client/fail2banreader.py

@ -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)

2
files/nagios/README

@ -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

Loading…
Cancel
Save