Bug 147899

Summary: XINETD.LOG log rotation incorrect
Product: [openSUSE] SUSE Linux 10.1 Reporter: Jim Pye <jim.pye>
Component: BasesystemAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 3   
Target Milestone: ---   
Hardware: PC   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jim Pye 2006-02-03 04:10:09 UTC
After a few days of monitoring the logfiles I noticed that I was getting multiple xinetd logfiles with an incrementing filename.
The configuration file for the logrotate utility had an error which can cause this issue.

Here is the /var/log directory listing after 4 days worth of logs:

xinetd.log
xinetd.log-20060108.gz
xinetd.log-20060108.gz-20060109.gz
xinetd.log-20060108.gz-20060109.gz-20060109.gz
xinetd.log-20060108.gz-20060109.gz-20060109.gz-20060110.gz
xinetd.log-20060108.gz-20060109.gz-20060109.gz-20060110.gz-20060111.gz
xinetd.log-20060108.gz-20060109.gz-20060109.gz-20060110.gz-20060111.gz-20060112.gz
xinetd.log-20060109.gz
xinetd.log-20060109.gz-20060109.gz
xinetd.log-20060109.gz-20060109.gz-20060110.gz
xinetd.log-20060109.gz-20060109.gz-20060110.gz-20060111.gz
xinetd.log-20060109.gz-20060109.gz-20060110.gz-20060111.gz-20060112.gz
xinetd.log-20060110.gz
xinetd.log-20060110.gz-20060111.gz
xinetd.log-20060110.gz-20060111.gz-20060112.gz
xinetd.log-20060111.gz
xinetd.log-20060111.gz-20060112.gz
xinetd.log-20060112.gz
Here is the original faulty /etc/logrotate.d/xinetd file that controls the log rotation for the xinetd process:

/var/log/xinetd.* {
    compress
    daily
    dateext
    .
    .
    .
}

The problem with this entry is the * wildcard in the filename. 

fix:

/var/log/xinetd.log {
    compress
    daily
    dateext
    .
    .
    .
}
Comment 1 Christian Boltz 2006-02-03 19:30:53 UTC
10.1 beta3 still has the same configuration in /etc/logrotate.d/xinetd :-(
Comment 2 Michal Marek 2006-02-06 11:54:42 UTC
Fixed, thanks for testng.