Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jun 2000 12:31:27 -0500
From:      "Jim C. Nasby" <jim@nasby.net>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        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:  <393FD86F.6205AD0A@nasby.net>
References:  <Pine.BSF.4.21.0006082303520.626-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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, but most
of the discussion here has been about sockets that become totally pointless
once the system does crash. Thats why putting such things in /tmp/$USER that
is set with proper permissions seems to make good sense... no one can tap
into the sockets/files there, and they get cleaned out on reboot.

Having seperate knobs for the daily run seems to make good sense. I'm
thinking it might be good to add a knob for how old a file needs to be
before it's rm'd by 110.clean-tmps. For sake of completeness, there should
probably be seperate knobs for /tmp and /var/tmp. Of course, this means
quite a few new knobs, but you could eliminate the seperate 'enable' knob if
the age knob was setup such that any non-numeric value meant do not clean
that filesystem.

BTW, I'm not sure if the variables in rc.conf are officially called knobs or
not, so sorry if I confusded anyone.
-- 
Jim C. Nasby (aka Decibel!)                                  /^\ 
jim@nasby.net                                               /___\
Freelance lighting designer and database developer         /  |  \
Member: Triangle Fraternity, Sports Car Club of America   /___|___\

Give your computer some brain candy! www.distributed.net Team #1828
Get paid to surf!! http://www.enteract.com/~nasby/alladvantage.html


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?393FD86F.6205AD0A>