Skip to content

Commit ffc3079

Browse files
authored
Remove socket files on start
Remove the socket files on start of the container. Otherwise fail2ban might not start on a container restart because they were not removed on shutdown.
1 parent 2176146 commit ffc3079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ function setTimeZone {
1515

1616
setTimeZone
1717
service fail2ban stop
18+
rm -f /var/run/fail2ban/*
1819
service fail2ban start
19-
tailf /var/log/fail2ban.log
20+
tailf /var/log/fail2ban.log

0 commit comments

Comments
 (0)