Bug 35545

Summary: [periodic] [patch] enhanced periodic scripts: 100.clean-disks, 100.clean-tmps
Product: Base System Reporter: D J Hawkey Jr <hawkeyd>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: mwm
Priority: Normal Keywords: patch
Version: 4.5-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff none

Description D J Hawkey Jr 2002-03-04 20:20:01 UTC
/etc/periodic/daily/100.clean-disks should have "exclude paths".
/etc/periodic/daily/110.clean-tmps removes empty directories, and should
not, IMHO.

Fix: These two patches. The first, for 100.clean-disks, honors a new variable,
daily_clean_disks_excludes (ex., "*/home/*"). The second, for 110.clean-tmps,
honors a new variable, daily_clean_tmps_prune (ex., "YES" or "NO").
Additionally, they both actually make their *_verbose variables do the
Right Thing(tm), and could pro'lly be applied to many more of the periodic
scripts.

They both should be scrutinized for correctness. They test out fine here,
and fulfill my needs, but may not be generic enough, and I may be blind to
some nuances of 'find' and/or 'periodic'.
How-To-Repeat: 
Enable either in /etc/periodic.conf
Comment 1 V.Chukharev 2010-03-14 14:24:03 UTC
A similar patch is in a closed PR conf/129697 .

A related PR conf/84752 refers to this one.

-- 
Vladimir Chukharev
Tampere University of Technology
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:41 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Alex Kozlov freebsd_committer freebsd_triage 2018-02-18 07:20:30 UTC
*** Bug 84752 has been marked as a duplicate of this bug. ***
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:38:41 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>