* C Hamel <yogich@sc2000.net> [09-01-04 07:51]:
I'm just a little puzzled. The 'logrotate.conf' file has the following: # see "man logrotate" for details # rotate log files weekly weekly
# keep 4 weeks worth of backlogs rotate 4 ...and the /etc/logrotate.d/syslog contains: /var/log/warn /var/log/messages /var/log/allmessages /var/log/localmessages / var/log/firewall { compress dateext maxage 365 rotate 99 missingok notifempty size +4096k create 640 root root sharedscripts postrotate /etc/init.d/syslog reload endscript ...which seems to be contradictory. I have done 'man logrotate' & the 'maxage' seems nowhere in the docs. Some time back, I finally put '--force' in the logrotate script so that they'd be archived daily. Still, I have had to manually mv logs out of /var/log because they're not rotating at all.
from logrotate man page maxage count Remove rotated logs older than <count> days. The age is only checked if the log file is to be rotated. The files are mailed to the configured address if mail last and mail are configured. If you want the files rotated daily, instead of using '--force', why don't you set the parameter to 'daily' in /etc/logrotate.d/syslog? Above you have:
I'm just a little puzzled. The 'logrotate.conf' file has the following: # see "man logrotate" for details # rotate log files weekly weekly
# keep 4 weeks worth of backlogs rotate 4
rotate count Log files are rotated <count> times before being removed or mailed to the address specified in a mail directive. If count is 0, old versions are removed rather then rotated. rotate is based on '# of times' and maxage on '# of days' -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos