fail2ban doesn't recreate /var/run/fail2ban directory if destroyed
Bug #234076 reported by
Andrew Oakley
This bug report is a duplicate of:
Bug #222804: [SRU] fail2ban fails to start after reboot.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fail2ban (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: fail2ban
Installing fail2ban 0.8.2-2 under Hardy create the directory /var/run/fail2ban/ .
However, if the directory is destroyed, it is not recreated when fail2ban is restarted. As a result, the program cannot create it's .sock and .pid files in the default locations.
This means it cannot run, and when run with /etc/init.
/etc/init.
To post a comment you must log in.
Confirmed. Installing fail2ban shouldn't create /var/run/fail2ban (which is what happens at the moment), but running it should create it instead (baring in mind that /var/run is volatile).
Steps to reproduce: d/fail2ban stop) d/fail2ban start) - observe long pause and fail2ban doesn't start. Confirm that /var/run/fail2ban doesn't exist d/fail2ban start) - observe service starts correctly now, and presence of *.sock and *.pid file under /var/run/fail2ban
1) Install fail2ban
2) Stop fail2ban (sudo /etc/init.
3) Remove /var/run/fail2ban created from install script (sudo rm -r /var/run/fail2ban)
4) Try to restart fail2ban (sudo /etc/init.
5) Re-create /var/run/fail2ban (sudo mkdir /var/run/fail2ban)
6) Re-start fail2ban (sudo /etc/init.