Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 55203

Summary: logrotate's unusual default behavior
Product: Gentoo Linux Reporter: Eric Pretorious <epretorious>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eric Pretorious 2004-06-25 17:45:52 UTC
logrotate-3.6.5-r1 rotates *most* files in /var/log *daily* even though /etc/logrotate.conf (and the other logrotate config files) do not include directions to do so. (The default configuration file specifies to rotate /var/log/wtmp monthly.)

Reproducible: Always
Steps to Reproduce:
emerge logrotate. (cron runs logrotate.)
Actual Results:  
files that _are_ rotated _daily_ even though there is NO mention in any logrotate config 
file:  (in /var/log) 
 auth.log 
 cron.log 
 daemon.log 
 debug 
 imap.log 
 kern.log 
 lpr.log 
 mail.log 
 mail.err 
 messages 
 pop.log 
 syslog 
 user.log 
 uucp 
 
files that are _not_ rotated: (in /var/log) 
 lastlog 
 ntpd.log 
 pop-before-smtp 

Expected Results:  
(Because wtmp is the only file specified in the default configuration) only wtmp should 
be rotated [monthly]. 

It appears that any/all of the files being rotated are syslog files (i.e., specified in 
/etc/syslog.conf)
Comment 1 Eric Pretorious 2004-06-26 18:55:34 UTC
Doh - I did not realize that syslog rotates it's own files. (Nowhere in the syslog man page does it say _anything_ about the /etc/cron.daily/syslog.cron file or /usr/sbin/syslogd-listfiles.) I discovered the cron.daily script quite by accident.

I apologize.  :^(