clean out /tmp?
Jeff Vian
jvian10 at charter.net
Mon Sep 26 22:25:48 UTC 2005
On Mon, 2005-09-26 at 15:08 -0700, Michael A. Peters wrote:
> On Tue, 2005-09-27 at 09:48 +1200, Morgan Read wrote:
> > Hi,
> > Is there a way to keeping my /tmp's cleaned out in FC?
>
> Nothing in /tmp should be expected to survive a reboot.
> In fact, some people like to run /tmp as a tempfs (temporary file
> system) - only problem is, a tempfs can get full if you aren't careful.
>
> But you can write an init script to delete it all at shutdown (or
> startup). Or just do what I do - ignore it, if space ever gets tight -
> then I boot into runlevel 3 and clear it (you don't want to clear it
> with X running)
>
You can easily also extend the init script to work for runlevel 3,6,1,0
so it will clear /tmp whenever going to those runlevels.
More information about the users
mailing list