Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clearing /tmp on boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
someone12345
Guru
Guru


Joined: 09 Apr 2005
Posts: 365

PostPosted: Sun Apr 24, 2005 5:19 pm    Post subject: clearing /tmp on boot Reply with quote

Hi!

SuSE does automatically clear /tmp when the system boots (and may delete only files that have reached a certain age). Does gentoo provide something like this or will I have to do this by myself?
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1595
Location: Just over the horizon

PostPosted: Sun Apr 24, 2005 5:40 pm    Post subject: Reply with quote

There's nothing in the base Gentoo install that does that. As you mentioned, you could put a simple line in /etc/conf.d/local.start that cleans it out (assuming you don't have anything that writes to /tmp before local.start kicks in at the end of the boot session). Off topic to your question a bit, there is also a great little utility called tmpreaper that keeps it clean of cruft if your your system is up for long periods of time.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5618
Location: Removed by Neddy

PostPosted: Sun Apr 24, 2005 5:42 pm    Post subject: Reply with quote

I did have /tmp mounted on a TMPFS and that sorted it out, equally tmp was very fast. Was a problem when I was burning CD's tho
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1595
Location: Just over the horizon

PostPosted: Sun Apr 24, 2005 5:55 pm    Post subject: Reply with quote

Quote:

I did have /tmp mounted on a TMPFS and that sorted it out


Heh, I knew there was a better way of doing that. Solaris does the same thing if I remember correctly.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Sun Apr 24, 2005 6:12 pm    Post subject: Reply with quote

Moved to dups in favour of https://forums.gentoo.org/viewtopic-t-216265.html.
_________________
KDE
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum