From owner-cvs-all Wed Mar 28 2:37:25 2001 Delivered-To: cvs-all@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 35A9337B71E; Wed, 28 Mar 2001 02:37:12 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f2SAbUT68079; Wed, 28 Mar 2001 11:37:30 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f2SAfMm53577; Wed, 28 Mar 2001 11:41:22 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200103281041.f2SAfMm53577@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Alfred Perlstein Cc: Brian Somers , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: cvs commit: src/etc rc In-Reply-To: Message from Alfred Perlstein of "Wed, 28 Mar 2001 02:23:34 -0800." <20010328022334.S9431@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 28 Mar 2001 11:41:22 +0100 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > * Brian Somers [010328 02:13] wrote: > > brian 2001/03/28 02:13:27 PST > > > > Modified files: > > etc rc > > Log: > > Remove sockets found in /var/run or /var/spool/lock at boot time > > (as well as files). > > This may be a bad idea. > > Some applications may use these files as an indication of an > unorderly shutdown (kill -9 / crash). And refuse to start unless > repair utilities are run (or run them automatically). > > What do you think? I think it's ok. The original code (before purgedir was put there) just did a ``rm /var/run/*''. I think in the general case people will want their servers to start again at boot time and that it's fairly unusual to need to clean up anything (except for those stale sockets in /var/run). Anything that wants to keep state between reboots shouldn't really be using /var/ run -- for example, under Solaris, /var/run is a tmpfs. /var/db would probably be much better. > -- > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] > Instead of asking why a piece of software is using "1970s technology," > start asking why software is ignoring 30 years of accumulated wisdom. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message