From owner-freebsd-hackers Mon Sep 25 23:05:23 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id XAA13380 for hackers-outgoing; Mon, 25 Sep 1995 23:05:23 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id XAA13374 for ; Mon, 25 Sep 1995 23:05:21 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.11/8.6.9) id XAA09028; Mon, 25 Sep 1995 23:05:05 -0700 From: Julian Elischer Message-Id: <199509260605.XAA09028@ref.tfs.com> Subject: Re: ports startup scripts To: peter@taronga.com (Peter da Silva) Date: Mon, 25 Sep 1995 23:05:04 -0700 (PDT) Cc: hackers@freebsd.org In-Reply-To: <199509260347.WAA27526@bonkers.taronga.com> from "Peter da Silva" at Sep 25, 95 10:47:08 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1328 Sender: owner-hackers@freebsd.org Precedence: bulk > > > 1) Explicit (complex) numbering in the single directory > > Experience shows that the parenthetical (complex) is just not true. > > > 2) Mirrors of the "init.d" directory into other directories "rcN.d" > > with explicit numbering in those > > This is nice. > > > 3) Script to run from that directory to control order. > > That's where we are now. > > > 4) Control file. > > That's identical to #3. > > > #2 - You get whole directories of symlinks. Yuk. Lots of headaches. > > A name in a file is a symbolic link, too. Except it's harder to add. > > > #4 Works very simply. Ports can add one line to a config file, > > And where pray tell do they add the line? At the end? Then you might as > well go back to #1 except now they'll be in random order. And anywhere > else just doesn't bear thinking about. > > > Why complicate things? > > Dependencies on startup order. > use Make to start the system each module supplies a file that is included into the master makefile (which is generated..) echo "# Hi there.. This is Eddy your Shipboard Computer " >/tmp/boot.mk for i in /init.mk/* do echo ".include $i" >>/tmp/boot.mk done make -k -f /tmp/boot.mk :) -------------------------------- cat net.mk net: ifconfig .... nsfclient: net nfsiod -n 4 heh heh