From owner-freebsd-commit Mon Sep 18 06:52:56 1995 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA16425 for freebsd-commit-outgoing; Mon, 18 Sep 1995 06:52:56 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA16375 for cvs-all-outgoing; Mon, 18 Sep 1995 06:51:33 -0700 Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id GAA16365 for cvs-etc-outgoing; Mon, 18 Sep 1995 06:51:31 -0700 Received: from server.netcraft.co.uk (server.netcraft.co.uk [194.72.238.2]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id GAA16360 ; Mon, 18 Sep 1995 06:51:26 -0700 Received: (from paul@localhost) by server.netcraft.co.uk (8.6.11/8.6.9) id OAA14322; Mon, 18 Sep 1995 14:51:24 +0100 From: Paul Richards Message-Id: <199509181351.OAA14322@server.netcraft.co.uk> Subject: Re: cvs commit: src/etc rc To: jkh@freefall.freebsd.org (Jordan K. Hubbard) Date: Mon, 18 Sep 1995 14:51:23 +0100 (BST) Cc: CVS-commiters@freefall.freebsd.org, cvs-etc@freefall.freebsd.org In-Reply-To: <199509180738.AAA06438@freefall.freebsd.org> from "Jordan K. Hubbard" at Sep 18, 95 00:38:20 am Reply-to: paul@FreeBSD.org X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 2020 Sender: owner-commit@FreeBSD.org Precedence: bulk In reply to Jordan K. Hubbard who said > > jkh 95/09/18 00:38:19 > > Modified: etc rc > Log: > Add support for /etc/rc.local.d directory, ala SYSV. If the purists > don't like it, they don't have to use it. The check makes sure that > /etc/rc.local.d exists before attempting to do anything with it. Now > packages will be able to add their startups as /etc/rc.local.d/.sh > in order to get local startup behavior. Maybe we can stop adding > knobs to /etc/sysconfig for ports/packages now? > Submitted by: wollman & jkh Yuck, not because of SYSV but because of packages sticking stuff in /etc. I keep my root partition small and as read only as possible. This breaks that philosphy big time since it can grow without bounds as I add packages. I'm not happy about this at all since we had a long discussion about this on ports and I came up with a perfectly workable solution that has basically being ignored, but I guess Jordan knows best. Here was my proposal, I'd have liked to hear reasons against it before implementing a solution that I had already raised objections to. -------------------- Seriously, what I'd suggest is that a knob be added to /etc/sysconfig such as packages_startup= /usr/local/etc and then the package installation code honour that flag and use it to place their startup files. We just need one hook in /etc then that calls something in packages_startup. If Satoshi thinks up a simple registration system, such as just adding a line to packages_startup/startme, then this will all work with little effort and we avoid lots of little files getting added to /etc for each installed package. Installing a package is then a process of, checking /etc/sysconfig to see where package startup files go, installing them there and doing any other mess with startup files there instead of /etc. -- Paul Richards, Netcraft Ltd. Internet: paul@netcraft.co.uk, http://www.netcraft.co.uk Phone: 0370 462071 (Mobile), +44 1225 447500 (work)