Date: Wed, 28 Mar 2001 11:41:22 +0100 From: Brian Somers <brian@Awfulhak.org> To: Alfred Perlstein <bright@wintelcom.net> Cc: Brian Somers <brian@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: cvs commit: src/etc rc Message-ID: <200103281041.f2SAfMm53577@hak.lan.Awfulhak.org> In-Reply-To: Message from Alfred Perlstein <bright@wintelcom.net> of "Wed, 28 Mar 2001 02:23:34 -0800." <20010328022334.S9431@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> * Brian Somers <brian@FreeBSD.org> [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 <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103281041.f2SAfMm53577>
