logrotate
by yangyiin from LinuxQuestions.org on (#4T024)
hi,
ls -l /var/log/yum*
-rw-------. 1 root root 53 Oct 22 05:12 /var/log/yum.log
-rw-------. 1 root root 4208 Oct 18 10:29 /var/log/yum.log-20191022
why the new log was created after 4 days,knowing that the rotate time is after 1 week?can a system crash or other thing to determ the creation of a new log?
more /etc/logrotate.conf
weekly
more /etc/logrotate.d/yum
/var/log/yum.log {
missingok
notifempty
maxsize 30k
yearly
create 0600 root root
}


ls -l /var/log/yum*
-rw-------. 1 root root 53 Oct 22 05:12 /var/log/yum.log
-rw-------. 1 root root 4208 Oct 18 10:29 /var/log/yum.log-20191022
why the new log was created after 4 days,knowing that the rotate time is after 1 week?can a system crash or other thing to determ the creation of a new log?
more /etc/logrotate.conf
weekly
more /etc/logrotate.d/yum
/var/log/yum.log {
missingok
notifempty
maxsize 30k
yearly
create 0600 root root
}