VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Where is TMPTIME?  (Read 2025 times)

adamlau

  • Member
  • *
  • Posts: 15
Where is TMPTIME?
« 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 ;) !
Logged

bigpaws

  • Vectorian
  • ****
  • Posts: 1869
Re: Where is TMPTIME?
« 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
Re: Where is TMPTIME?
« 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

adamlau

  • Member
  • *
  • Posts: 15
Re: Where is TMPTIME?
« 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: [Select]
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
Re: Where is TMPTIME?
« 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: [Select]
tmpfs /tmp tmpfs  rw,noatime,nodev,noexec,nosuid,mode=1777 0 0
Logged