I have the following problem using the logrotate service to keep my journal tidy:
$this->bbcode_second_pass_code('', '
jan 11 00:00:00 example systemd[1]: Starting Rotate log files...
jan 11 00:00:00 example logrotate[19531]: error: bad year 1970 for file /var/log/wtmp in state file /var/lib/logrotate.status
jan 11 00:00:00 example systemd[1]: logrotate.service: main process exited, code=exited, status=1/FAILURE
jan 11 00:00:00 example systemd[1]: Failed to start Rotate log files.
jan 11 00:00:00 example systemd[1]: Unit logrotate.service entered failed state.
jan 11 00:00:00 example systemd[1]: logrotate.service failed.
')
I use the SystemMaxUse=256M in /etc/systemd/journald.conf to instruct logrotate to clean up the logs if they become too large.
Now, this is perhaps a perfectly reasonable behavior for a normal server system running Arch on hardware with a RTC. The Raspberry Pi, however, was not lucky enough to be born with one.
Can anybody recommend settings that will help mitigate this? I could, of course, clean up the logs manually, but i would rather have the service do it if at all possible (That, or get a RTC, which would probably also solve it).