Mailinglist Archive: opensuse-features (434 mails)

< Previous Next >
[openFATE 307510] Cron: set MAX_DAYS_IN_TMP different from 0
  • From: fate_noreply@xxxxxxx
  • Date: Tue, 1 Dec 2009 01:06:38 +0100 (CET)
  • Message-id: <feature-307510-3@xxxxxxxxxxxxxx>
Feature changed by: Robert Davies (robopensuse)
Feature #307510, revision 3
Title: Cron: set MAX_DAYS_IN_TMP different from 0

openSUSE-11.3: Unconfirmed
Requester: Important

Requested by: Ricardo Gabriel Berlasso (rgbsuse)

By default, openSUSE set MAX_DAYS_IN_TMP and MAX_DAYS_IN_LONG_TMP to
zero, which means /tmp and /var/tmp folders are never cleaned. New
users do not know of this, and after a while their hard drives ends
with a lot of “garbage”. People who need those files not to be removed
for sure will know how to change this default value but many people who
don't need those files will not know about them until a “disk full”
warning appears. This is particularly true for netbooks and old
computer with small drives.
My proposal is to set cron defaults to periodically clean the /tmp and
/var/tmp folders.

+ Discussion:
+ #1: Robert Davies (robopensuse) (2009-12-01 01:05:28)
+ Agreed!  Once with SuSE 8.2 I installed a machine for someone using it
+ offsite, and I missed to change that; because /tmp was never cleared up
+ sometimes login would fail, and it would fail strangely, and not in
+ such a way that had me checking /tmp, so it was only when I got the
+ machine back I noticed.
+ Personally deleting files with policy something like, not accessed for
+ 7 days, and that are older than 28 days  in /tmp; or 1 month & 3 months
+ in /var/tmp would be very conservative defaults, yet reduce maintenance
+ for the "oblivious".

openSUSE Feature:

< Previous Next >
List Navigation