Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55203 - logrotate's unusual default behavior
Summary: logrotate's unusual default behavior
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-25 17:45 UTC by Eric Pretorious
Modified: 2004-06-26 18:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.  :^(