I've Googled around but none of the results seem to indicate any issue with
out configuration. Fedora 27, fail2ban-0.10.1-3.fc27.noarch. After
restarting Fail2ban, logrotate started working. Here's what I captured
before the restart:
ps -auwx | grep anacron
root 1386 0.0 0.0 9296 1076 pts/0 S+ 09:24 0:00 grep
--color=auto anacron
root 25632 0.0 0.0 132460 2648 ? Ss Feb11 0:00
/usr/sbin/anacron -s
lslocks -p 25632
COMMAND PID TYPE SIZE MODE M START END PATH
anacron 25632 POSIX 9B WRITE 0 0 0
/var/spool/anacron/cron.daily
pstree 25632
anacron---run-parts-+-awk
`-logrotate---logrotate---sh---fail2ban-client
ls -l /var/log/fail2ban.log
-rw-r--r-- 1 root root 0 Feb 11 03:17 /var/log/fail2ban.log
ps -auwx | grep fail2ban
root 1606 0.0 0.0 9296 1040 pts/0 S+ 09:29 0:00 grep
--color=auto fail2ban
root 20963 88.5 0.7 11476768 63116 ? Rsl Feb09 17626:09
/usr/bin/python3 -s /usr/bin/fail2ban-server -xf start
root 28362 0.0 0.0 120296 2164 ? SN Feb11 0:00 sh -c
/usr/bin/fail2ban-client flushlogs >/dev/null || true logrotate_script
/var/log/fail2ban.log
root 28363 0.0 0.1 191192 14444 ? SN Feb11 0:00
/usr/bin/python3 -s /usr/bin/fail2ban-client flushlogs
systemctl status fail2ban
* fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled;
vendor preset: disabled)
Drop-In: /etc/systemd/system/fail2ban.service.d
`-limits.conf
Active: active (running) since Fri 2018-02-09 13:49:38 EST; 1 weeks 6
days ago
Docs: man:fail2ban(1)
Main PID: 20963 (fail2ban-server)
Tasks: 31 (limit: 4915)
CGroup: /system.slice/fail2ban.service
`-20963 /usr/bin/python3 -s /usr/bin/fail2ban-server -xf start
Warning: Journal has been rotated since unit was started. Log output is
incomplete or unavailable.
cat /etc/logrotate.d/fail2ban
/var/log/fail2ban.log {
missingok
notifempty
postrotate
/usr/bin/fail2ban-client flushlogs >/dev/null || true
endscript
}
Anything else that may have caused this?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fail2ban-users mailing list
Fail2ban-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fail2ban-users