mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
fail2ban stops updating /var/log/fail2ban.log after rotation, this change fixes that problem. According to the docs at: https://www.fail2ban.org/wiki/index.php/Commands#LOGGING we shall call "flushlogs" after rotation. Closes #11382
11 lines
230 B
Text
11 lines
230 B
Text
/var/log/fail2ban.log {
|
|
daily
|
|
rotate 7
|
|
missingok
|
|
compress
|
|
postrotate
|
|
/usr/bin/fail2ban-client flushlogs 1>/dev/null || true
|
|
chown :wheel /var/log/fail2ban.log
|
|
chmod 640 /var/log/fail2ban.log
|
|
endscript
|
|
}
|