I had a system date problem when logrotate ran for the first time such that /var/lib/logrotate.status has:
logrotate state -- version 2 "/var/log/yum.log" 1970-1-1-0:0:0 "/var/log/wtmp" 1970-1-1-0:0:0 "/var/log/chrony/*.log" 1970-1-1-0:0:0 "/var/log/spooler" 1970-1-1-0:0:0 "/var/log/btmp" 1970-1-1-0:0:0 "/var/log/maillog" 1970-1-1-0:0:0 "/var/log/wpa_supplicant.log" 1970-1-1-0:0:0 "/var/log/secure" 1970-1-1-0:0:0 "/var/log/ppp/connect-errors" 1970-1-1-0:0:0 "/var/log/messages" 1970-1-1-0:0:0 "/var/log/cron" 1970-1-1-0:0:0
MOST of these files now have good dates (btmp still old date).
I assume I can use: 'touch file' to make the date current (as in the case of /var/log/btmp).
But how do I regenerate this file so that logrotate will run?
thanks
How can I regen