From owner-freebsd-hackers Mon Feb 1 14:29:43 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA26893 for freebsd-hackers-outgoing; Mon, 1 Feb 1999 14:29:43 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA26886 for ; Mon, 1 Feb 1999 14:29:42 -0800 (PST) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.9.1/8.9.1) id OAA12331 for freebsd-hackers@freebsd.org; Mon, 1 Feb 1999 14:28:31 -0800 (PST) (envelope-from dhw) Date: Mon, 1 Feb 1999 14:28:31 -0800 (PST) From: David Wolfskill Message-Id: <199902012228.OAA12331@pau-amma.whistle.com> To: freebsd-hackers@FreeBSD.ORG Subject: Re: more modular rc/init/uninit system... In-Reply-To: <36B52323.FE27286D@newsguy.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Mon, 01 Feb 1999 12:44:35 +0900 >From: "Daniel C. Sobral" >Curt Sampson wrote: >> One interesting thing you can do with this is dump your own script, >> `foo', into the directory which says `x, y and z are all dependent >> on me.' Then you can start or stop foo, and that would take care >> of starting and stopping x, y and z. This will let you emulate SysV >> run levels, but also provide a lot more flexability. >Yeah, and having to change my ppp dial on demand script everytime I >add something that depends on it. Scripts shouldn't have to be >changed. That's the main benefit of FreeBSD's rc.conf. So switch the logic: the "foo" script should be able to tell a sufficiently interested inquirer what services it depends on. If some of those have additional dependencies... well, I think we know how to do transitive closure on such dependency graphs. david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message