Bug 9058

Summary: logrotate configuration problem
Product: [Retired] Red Hat Powertools Reporter: mck
Component: junkbusterAssignee: Tim Powers <timp>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-02 17:22:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mck 2000-02-02 03:21:03 UTC
Someone must have seen this one but it reappears in each new version,
so I'll make an "official" report.  The following file is included in the
rpm as junkbuster.logrotate to be placed in /etc/logrotate.d:

# Logrotate file for Junkbuster RPM

/var/log/junkbuster/* {
	compress
        weekly
}

Specifying * as the file(s) to be rotated results in a geometric growth
of the number of files in /var/log/junkbuster because each run of
logrotate rotates each _generation_ of the log file instead of just the
base file.   The corrected configuration file should, of course, look
like this:

# Logrotate file for Junkbuster RPM

/var/log/junkbuster/junkbuster{
	compress
        weekly
}

Comment 1 Tim Powers 2000-02-02 17:22:59 UTC
OK. I have patched to fix the problem. You should see it in rawhide soon.

Tim