From owner-cvs-all Thu Jun 8 11:17:42 2000 Delivered-To: cvs-all@freebsd.org Received: from gilgamesch.bik-gmbh.de (T1-Hansenet.BIK-GmbH.de [192.76.134.246]) by hub.freebsd.org (Postfix) with ESMTP id C9F6837C0E9; Thu, 8 Jun 2000 11:17:16 -0700 (PDT) (envelope-from cracauer@gilgamesch.bik-gmbh.de) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.9.3/8.7.3) id UAA59947; Thu, 8 Jun 2000 20:16:50 +0200 (MET DST) Date: Thu, 8 Jun 2000 20:16:50 +0200 From: Martin Cracauer To: "Jim C. Nasby" Cc: Bruce Evans , Jeroen Ruigrok van der Werven , Brian Somers , 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> References: <393FD86F.6205AD0A@nasby.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <393FD86F.6205AD0A@nasby.net>; from jim@nasby.net on Thu, Jun 08, 2000 at 12:31:27PM -0500 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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