From owner-freebsd-current Wed Jul 26 12:08:10 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id MAA13231 for current-outgoing; Wed, 26 Jul 1995 12:08:10 -0700 Received: from server.netcraft.co.uk (server.netcraft.co.uk [194.72.238.2]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id MAA13215 ; Wed, 26 Jul 1995 12:08:07 -0700 Received: (from paul@localhost) by server.netcraft.co.uk (8.6.11/8.6.9) id UAA29590; Wed, 26 Jul 1995 20:07:13 +0100 From: Paul Richards Message-Id: <199507261907.UAA29590@server.netcraft.co.uk> Subject: Re: Knobs in /etc/sysconfig To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Wed, 26 Jul 1995 20:07:12 +0100 (BST) Cc: paul@freebsd.org, wollman@halloran-eldar.lcs.mit.edu, jkh@time.cdrom.com, current@freebsd.org In-Reply-To: <199507261901.MAA26634@gndrsh.aac.dev.com> from "Rodney W. Grimes" at Jul 26, 95 12:01:48 pm 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: 1244 Sender: current-owner@freebsd.org Precedence: bulk In reply to Rodney W. Grimes who said > > The package mechanism went to great pains to allow other locations than > /usr/local for this stuff, fixing that location in an /etc file would > be counter productive to this effort. > > I can install all (or almost all) of the packages in /opt if I so choose > to. Ok, the use /opt/etc :-) 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, Bluebird Computer Systems. FreeBSD core team member. Internet: paul@FreeBSD.org, http://www.freebsd.org/~paul Phone: 0370 462071 (Mobile), +44 1222 457651 (home)