Log Rotation Issue

Expected Behaviour:

Log rotation for Pi-hole log files should not interfere with rotation of system log files.

Actual Behaviour:

Daily log rotation for Pi-hole via cron occurs at midnight and a systemd timer for rotating system logs also occurs at midnight. The Pi-hole relevant entries in /var/lib/logrotate/status are updated correctly but the timestamps are not updated for the system logs. This causes the system log files to be rotated daily instead of weekly or monthly as it constantly sees them as overdue. I suspect there is a file contention issue on the status file. My temporary fix is to change the Pi-hole cron job from "00 00" to "01 00" in /etc/cron.d/pihole. However, I am concerned this change will be overwritten on the next update.

Debug Token:

https://tricorder.pi-hole.net/a1shy3s6vt

Fix is in progress.

https://github.com/pi-hole/pi-hole/pull/4225

The next update will leave users logrotate files alone and no longer overwrite them.