how log is logrotated?
I have RHEL4 and I found logrotate will see /var/lib/logrotate.status for message rotation. I have a log file to rotate daily with cron.daily. Today,
I edit the log rotation setting and want to test new logrotate setting by (#logrotate -dv /etc/logrotate.d/my_log), However, I was told that no need to logrotate it. Then, I manually edit /var/lib/logrotate.status to make my_log timestamp to yesterday then I can see my log to be logrotated. I wonder how logrotate to update the rotation timestamp.
|