Bug 742471 - RFE: allow to specify max age for files to be removed by tmpwatch
Summary: RFE: allow to specify max age for files to be removed by tmpwatch
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: tmpwatch
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miloslav Trmač
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-30 09:20 UTC by Till Maas
Modified: 2011-10-04 08:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-04 08:04:00 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.