Date: Mon, 18 Sep 1995 14:51:23 +0100 (BST) From: Paul Richards <paul@netcraft.co.uk> To: jkh@freefall.freebsd.org (Jordan K. Hubbard) Cc: CVS-commiters@freefall.freebsd.org, cvs-etc@freefall.freebsd.org Subject: Re: cvs commit: src/etc rc Message-ID: <199509181351.OAA14322@server.netcraft.co.uk> In-Reply-To: <199509180738.AAA06438@freefall.freebsd.org> from "Jordan K. Hubbard" at Sep 18, 95 00:38:20 am
next in thread | previous in thread | raw e-mail | index | archive | help
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/<pkgname>.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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509181351.OAA14322>