* When does /tmp empty?
@ 2003-01-13 15:16 Chris Hendrick
2003-01-13 19:52 ` Paul Szabo
0 siblings, 1 reply; 4+ messages in thread
From: Chris Hendrick @ 2003-01-13 15:16 UTC (permalink / raw)
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?
Thanks
Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: When does /tmp empty?
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
0 siblings, 1 reply; 4+ messages in thread
From: Paul Szabo @ 2003-01-13 19:52 UTC (permalink / raw)
To: Chris Hendrick
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
http://www.maths.usyd.edu.au:8000/u/psz/securedu.html
for details.
Cheers, Paul
--
Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics University of Sydney 2006 Australia
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: When does /tmp empty?
2003-01-13 19:52 ` Paul Szabo
@ 2003-01-14 6:33 ` Nikola Milutinovic
2003-01-16 18:21 ` Harris
0 siblings, 1 reply; 4+ messages in thread
From: Nikola Milutinovic @ 2003-01-14 6:33 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: When does /tmp empty?
2003-01-14 6:33 ` Nikola Milutinovic
@ 2003-01-16 18:21 ` Harris
0 siblings, 0 replies; 4+ messages in thread
From: Harris @ 2003-01-16 18:21 UTC (permalink / raw)
Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-16 18:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2003-01-16 18:21 ` Harris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox