Bug 742471

Summary: RFE: allow to specify max age for files to be removed by tmpwatch
Product: [Fedora] Fedora Reporter: Till Maas <opensource>
Component: tmpwatchAssignee: Miloslav Trmač <mitr>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: mitr
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-04 08:04:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Till Maas 2011-09-30 09:20:46 UTC
Description of problem:
I would like to make tmpwatch all files older than 1 day. This requires to edit /etc/cron.dail/tmpwatch directly. It would be nicer to be able to set max age variables in /etc/sysconfing/tmpwatch that are then used by tmpwatch.

Version-Release number of selected component (if applicable):
tmpwatch-2.10.2-1.fc15

Comment 1 Miloslav Trmač 2011-10-04 08:04:00 UTC
Thanks for your report.  I agree with the general sentiment, and I have considered this in the past.

I'm afraid I can't see a way to make the current script configurable enough without making the configuration about as large as the existing script ({TMP,VAR_TMP,MAN}_{TIME,EXCLUDES,FLAGS} is 9 items already, and *_FLAGS doesn't really have much of a semantics).  I think keeping the script editable (and marked %config) is the most reasonable solution.