Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189517 - [tmpwatch] no default action for cleaning /tmp and /var/tmp
Summary: [tmpwatch] no default action for cleaning /tmp and /var/tmp
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-19 19:23 UTC by Jerome
Modified: 2007-08-25 09:39 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 19:23:59 UTC
Hello,

I just emerged "tmpwatch"
because my laptop hard disk is highly fragmented (~6%)
and has no more free space.

I saw that the cron task does nothing by default.

I would like a default action like the following
to be added to /etc/cron.daily/tmpwatch:
---
# delete temporary files which were unchanged since 9 days
${TMPWATCH} --mtime 216 /tmp /var/tmp
---

Thanks.

Reproducible: Always
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-19 19:27:15 UTC
You've already filed 3 bugs about exact same thing; please stop. We won't administer your system for you, not our problem. Go set up the cronjobs as *you* require for *your* specific needs; we frankly don't care much that you've run out of disk space.

Comment 2 Jerome 2007-08-19 19:50:54 UTC
Sorry, I don't want to get on your nerves.

I first filed bug 188915.

You marked it as duplicate of bug 33877. Thus I added the information to this existing bug. Then Chris Gianelloni told me to file a new bug.

Thus I reopened the bug 188915 that you previously marked as duplicate and I added some comments.

After that I filed the current bug which is not related at all with the previously described bugs.

Cleaning /tmp and /var/tmp is not related to portage.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-08-19 19:55:09 UTC
/var/tmp is not supposed to get wiped in any automated manner; just because you've run out of diskspace I don't want my ccache destroyed by stupid cronscript that has no clue about ccache internals.

/tmp already is cleaned on every reboot, if you need to wipe it more often, them set up your cronjobs as *you* need.
Comment 4 Jakob Schiotz 2007-08-20 10:01:41 UTC
You probably want to change WIPE_TMP="no" to WIPE_TMP="yes" in /etc/conf.d/bootmisc .  Then the junk in /tmp is deleted at every reboot, instead of just known files being removed.  You will of course need tmpwatch if your machine is rarely rebooted.

/Jakob
Comment 5 Jerome 2007-08-25 09:39:09 UTC
in reply to comment 3 about ccache:
maybe the ccache cache diretory should be in /var/cache instead of /var/tmp ?