From: Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu>
Subject: Re: When does /tmp empty?
Date: Tue, 14 Jan 2003 07:33:06 +0100 [thread overview]
Message-ID: <3E23AF22.6080708@ev.co.yu> (raw)
In-Reply-To: 3E231903.41C6@maths.usyd.edu.au
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.
next prev parent reply other threads:[~2003-01-14 6:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-13 15:16 When does /tmp empty? Chris Hendrick
2003-01-13 19:52 ` Paul Szabo
2003-01-14 6:33 ` Nikola Milutinovic [this message]
2003-01-16 18:21 ` Harris
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox