Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189462 - need default cron task for cleaning /tmp and /var/tmp
Summary: need default cron task for cleaning /tmp and /var/tmp
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-19 13:08 UTC by Jerome
Modified: 2007-08-19 19:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome 2007-08-19 13:08:31 UTC
Here is the cron task I added:

/etc/cron.daily/clean-tmp
---
#! /bin/sh
for d in "/tmp" "/var/tmp" ; do
        rm -fv $(find $d -type f -mtime +9)
done
---

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-19 13:10:14 UTC
So emerge app-admin/tmpwatch
Comment 2 Jerome 2007-08-19 19:05:16 UTC
thanks.