I have set /etc/logrotate.conf (details below) to rotate once a week, but it continues to rotate logs daily.
It started to behave like this after I changed the rotate number from default 4 to 10, and later back to 4.
A logrotate script is in the /etc/cron.daily folder, but I don't think it is the cause of the problem.
What did I do wrong? Should I empty the file /var/lib/logrotate/logrotate.status to reset its references?
Thank you all!
Code: Select all
# see "man logrotate" for details
# rotate log files weekly
# keep 4 weeks worth of backlogs (Default: 4)
# create new (empty) log files after rotating old ones
# use date as a suffix of the rotated file
# uncomment this if you want your log files compressed
# RPM packages drop log rotation information into this directory
# no packages own wtmp and btmp -- we'll rotate them here
create 0664 root utmp
create 0600 root utmp
# system-specific logs may be also be configured here.