Empty /tmp when shutting down

Robert P. J. Day rpjday at mindspring.com
Wed Feb 25 12:49:28 UTC 2004


On Wed, 25 Feb 2004, Robert Vangel wrote:

> You could create a init script in rc6.d and rc0.d which does an
> 
> rm -rf /tmp/* /tmp/.*
> 
> I don't think it has one built in though
> 
> Coume - Lubox.com wrote:
> > Hello,
> > Is it possible to empty the /tmp directory when I shutdown my laptop?
> > If I remember well, I was doing that under MDK but I cannot remember how

why not just mount a "tmpfs" filesystem under tmp?  that goes away
automatically when you shut down.

rday





More information about the fedora-list mailing list