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-16 10:21:44 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: harris-g@cox.net (Harris) Newsgroups: comp.unix.tru64 Subject: Re: When does /tmp empty? Date: 16 Jan 2003 10:21:43 -0800 Organization: http://groups.google.com/ Message-ID: <4efc65f8.0301161021.590c5c3b@posting.google.com> References: <7e565e03.0301130716.69380adb@posting.google.com> <3E231903.41C6@maths.usyd.edu.au> <3E23AF22.6080708@ev.co.yu> NNTP-Posting-Host: 216.0.105.50 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1042741304 23374 127.0.0.1 (16 Jan 2003 18:21:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Jan 2003 18:21:44 GMT Xref: archiver1.google.com comp.unix.tru64:9399 Nikola Milutinovic wrote in message news:<3E23AF22.6080708@ev.co.yu>... > 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. Also, there should be entries in the root crontab that call /usr/sbin/dirclean that purge old entries in /tmp and /var/tmp...The entries would be something like: 20 4 * * * /usr/sbin/dirclean -t +2 -o -k s /tmp/ 30 4 * * * /usr/sbin/dirclean -t +7 -o -k s /var/tmp/ Harris