VectorLinux
October 22, 2014, 05:16:04 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Where is TMPTIME?  (Read 1831 times)
adamlau
Member
*
Posts: 15


« on: January 03, 2009, 05:41:50 am »

Or an equivalent variable and its location in order to modify when the /tmp directory is cleared. Thanks Wink !
Logged
bigpaws
Vectorian
****
Posts: 1856


« Reply #1 on: January 03, 2009, 06:44:13 am »

I am not aware of anything that clears the /tmp file.

Is there a problem or are you trying to do something that isn't working?

Bigpaws
Logged
kidd
Packager
Vectorian
****
Posts: 682


« Reply #2 on: January 03, 2009, 06:54:04 am »

Ubuntu cleans /tmp on every boot.

In VL it happens only if you choose tmpfs as your /tmp .  Then your /tmp directory will be a virtual one, without using your hd but only RAM (as if it was /proc) . Problem with that is when I wanted to write a dvd, k3b wanted to use /tmp as a temporary dir. and I ran out of ram.  I had to configure k3b to use /home/kidd/tmp as its temporary dir.

After saying that, I don't know of a reliable way to clean /tmp on each boot.  maybe playing with your /etc/rc.d
Logged

adamlau
Member
*
Posts: 15


« Reply #3 on: January 03, 2009, 02:28:20 pm »

What I did was make a small (128 MB) tmpfs file (ReiserFS) mounted as /tmp and redirected Xfburn (and web caches and the like) to /dev/shm. Added the following line into /etc/rc.d/rc.local:

Code:
rm /tmp/* -f > /dev/null

and all seems well enough for now. Thanks again, guys.
« Last Edit: January 04, 2009, 03:02:35 am by adamlau » Logged
adamlau
Member
*
Posts: 15


« Reply #4 on: January 04, 2009, 03:03:42 am »

Since this is a desktop, decided to go the following route instead, no need to run anything in rc.local:

Code:
tmpfs /tmp tmpfs  rw,noatime,nodev,noexec,nosuid,mode=1777 0 0
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!