Don't clear out /tmp on boot

by jenny on 10 March 2008 - 01:04am in

Yes, /tmp is for temporary files... but cleaning it out on every boot? Whose bright idea was that?

Here's how to fix it. In /etc/default/rcS, locate this line:


This is where the number of days old a file needs to be for it to be deleted on boot is supposed to go. Notice the offending 0. That means delete everything, every time. Change this value to something sensible like 15 or 30.

Other distros use cron to clean out /tmp, and the default for those is 720 hours (30 days).