I added for some reason "delaycompress" to /etc/logrotate.conf and do now get : error: error unlinking log file /var/log/atop/dummy_before-20190708.gz: No such file or directory error: error unlinking log file /var/log/atop/dummy_after-20190708.gz: No such file or directory once a day from "Anacron job 'cron.daily' on <hostname>" I do wonder if it is related to that config option and how I can avoid it?
/etc/logrotate.d/psaccu_atop must contain nodelaycompress it looks like a bug in logrotate: delaycompress with rotate 0
https://github.com/logrotate/logrotate/issues/341
Fixed in logrotate 3.18 (unreleased)
upstream commit: https://github.com/logrotate/logrotate/commit/5c6b370d