Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jun 2000 20:16:50 +0200
From:      Martin Cracauer <cracauer@cons.org>
To:        "Jim C. Nasby" <jim@nasby.net>
Cc:        Bruce Evans <bde@zeta.org.au>, Jeroen Ruigrok van der Werven <jruigrok@via-net-works.nl>, Brian Somers <brian@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc/periodic/daily 110.clean-tmps
Message-ID:  <20000608201650.A59631@cons.org>
In-Reply-To: <393FD86F.6205AD0A@nasby.net>; from jim@nasby.net on Thu, Jun 08, 2000 at 12:31:27PM -0500
References:  <Pine.BSF.4.21.0006082303520.626-100000@besplex.bde.org> <393FD86F.6205AD0A@nasby.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In <393FD86F.6205AD0A@nasby.net>, Jim C. Nasby wrote: 
> Bruce Evans wrote:
> > 
> > On Thu, 8 Jun 2000, Jeroen Ruigrok van der Werven wrote:
> > 
> > > -On [20000608 10:50], Brian Somers (brian@FreeBSD.org) wrote:
> > > >brian       2000/06/08 01:48:16 PDT
> > > >
> > > >  Modified files:
> > > >    etc/periodic/daily   110.clean-tmps
> > > >  Log:
> > > >  Clean /tmp and /var/tmp if $clear_tmp_enable is set to YES in rc.conf
> > >
> > > I disagree with this on the pure and simple notion that it comflicts
> > > with the description of it in hier(7).
> > 
> > Periodic cleaning needs to be much more conservative for /var/tmp than
> > for /tmp (if clear_tmp_enable is set).  /tmp may be fully cleaned without
> > warning at any time because the system may crash at any time :-).
> 
> The system may crash at any time, resulting in /tmp being cleaned, 

What you people overlook is that applications die on reboot
(hopefully).  If you clear /tmp without reboot, you may very well
delete some file that looks old but just belongs to a very
long-running application that is still alive and may crash when you
pull its files without reboot.

The variables for clearing only on reboot and/or periodically must be
seperated.

Also, clearing of /tmp and /var/tmp should be controllable seperately,
since many folks nuke /tmp on every reboot, but purposely use /var/tmp
for those things that should survive a reboot (i.e. mailer tmp files).

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer/
BSD User Group Hamburg, Germany     http://www.bsdhh.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000608201650.A59631>