Bug 147899 - XINETD.LOG log rotation incorrect
Summary: XINETD.LOG log rotation incorrect
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 3
Hardware: PC SuSE Linux 10.0
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Michal Marek
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-03 04:10 UTC by Jim Pye
Modified: 2006-02-06 11:54 UTC (History)
1 user (show)

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

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