From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,46938aa43e8c61fc X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-01-13 22:45:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!newsfeed.vmunix.org!npeer.de.kpn-eurorings.net!newsfeed.freenet.de!news-feed1.de1.concert.net!EUnet.yu!Mercury.ev.co.yu!not-for-mail From: Nikola Milutinovic Newsgroups: comp.unix.tru64 Subject: Re: When does /tmp empty? Date: Tue, 14 Jan 2003 07:33:06 +0100 Organization: EPS JP Elektrovojvodina Message-ID: <3E23AF22.6080708@ev.co.yu> References: <7e565e03.0301130716.69380adb@posting.google.com> <3E231903.41C6@maths.usyd.edu.au> NNTP-Posting-Host: brigitte.ev.co.yu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en, sr Xref: archiver1.google.com comp.unix.tru64:9378 Paul Szabo wrote: > Chris Hendrick wrote: > >>I have gathered from other posts on this group that /tmp empties on >>boot in v5.1a. Is this true or are there other, automated instances? > > > At boot it runs /sbin/init.d/rmtmpfiles . I guess there is something in > default root crontab, but I use my own cleantmp script: see System cannot know for sure if a file in /tmp is "dead", unless it is boot/reboot (so, no process could have survived). The reason for preserving files newer than 3 days is for preserving some possible output for the user/admin to look at. Another possibility would be to scan each file in /tmp with "fuser" command and if it is not used AND older than, say, 5 days, then delete it. Nix.