963 shaares
2 results
tagged
logrotate
=> Problem with bad year for file /var/log/....
mv -f /var/lib/logrotate.status /var/lib/logrotate.status.$$; touch /var/lib/logrotate.status;
chown 0:0 /var/lib/logrotate.status; chmod 0644 /var/lib/logrotate.status;
# test:
/usr/sbin/logrotate -d /etc/logrotate.conf
# and force run:
/usr/sbin/logrotate -f /etc/logrotate.conf
mv -f /var/lib/logrotate.status /var/lib/logrotate.status.$$; touch /var/lib/logrotate.status;
chown 0:0 /var/lib/logrotate.status; chmod 0644 /var/lib/logrotate.status;
# test:
/usr/sbin/logrotate -d /etc/logrotate.conf
# and force run:
/usr/sbin/logrotate -f /etc/logrotate.conf