Hello
Does every thing in /tmp directory will be removed when centos rebooted ? is there any where that we can change this settings ?
Regards Babak
On 10/18/07, Centos centos@unixplanet.biz wrote:
Hello
Does every thing in /tmp directory will be removed when centos rebooted ? is there any where that we can change this settings ?
/tmp is basically a scratch pad for the system. There's not supposed to be anything of any permenance in there. What is it that you're looking to retain?
Centos wrote:
Hello
Does every thing in /tmp directory will be removed when centos rebooted ?
No, but...
is there any where that we can change this settings ?
the cleanup is done by tmpwatch.
man tmpwatch cat /etc/cron.daily/tmpwatch
Mogens
Thanks Mogen,
the tmpwatch in crontab is as follow , and I believe it should remove the files after 240 hours, but as far as I see , it removes them much more earlier.
more /etc/cron.daily/tmpwatch
/usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp
Mogens Kjaer wrote:
Centos wrote:
Hello
Does every thing in /tmp directory will be removed when centos rebooted ?
No, but...
is there any where that we can change this settings ?
the cleanup is done by tmpwatch.
man tmpwatch cat /etc/cron.daily/tmpwatch
Mogens
On Thu, Oct 18, 2007 at 12:35:59PM -0300, Centos wrote:
the tmpwatch in crontab is as follow , and I believe it should remove the files after 240 hours, but as far as I see , it removes them much more earlier. more /etc/cron.daily/tmpwatch /usr/sbin/tmpwatch -x /tmp/.X11-unix -x /tmp/.XIM-unix -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp
There's a subtle issue. It will remove them after their access time is older than 240 hours. The access time could be somehow set to older than that with a program like 'touch' -- and, I have no idea how it deals with filesystems mounted with noatime. (Is yours?)