From owner-freebsd-hackers Tue Dec 1 00:04:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA28755 for freebsd-hackers-outgoing; Tue, 1 Dec 1998 00:04:00 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from apollo.backplane.com (apollo.backplane.com [209.157.86.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA28750 for ; Tue, 1 Dec 1998 00:03:58 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.1/8.9.1) id AAA03964; Tue, 1 Dec 1998 00:03:45 -0800 (PST) (envelope-from dillon) Date: Tue, 1 Dec 1998 00:03:45 -0800 (PST) From: Matthew Dillon Message-Id: <199812010803.AAA03964@apollo.backplane.com> To: ADRIAN Filipi-Martin , Dan Busarow , Eivind Eklund , hackers@FreeBSD.ORG Subject: Re: System V init (was: Linux to be deployed in Mexican schools; Where was FreeBSD?) References: <199812010743.XAA03898@apollo.backplane.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : ---- some rc.xxx file ---- : #!/bin/sh : #DEPENDS(network,sendmail,...) RETURNS(atm) : # : ... : -------------------------- Doh. bad example. Here's a better example: -------------- rc.network --------------- #!/bin/sh #DEPENDS(network.local,ifc,lo,routes,ipfw) RETURNS(network) # exit 0 -------------- rc.bind --------------- #!/bin/sh #DEPENDS(network) RETURNS(bind) # ... named startup ... -------------- rc.sendmail --------------- #!/bin/sh #DEPENDS(bind,hostname) RETURNS(sendmail) # ... sendmail startup ... ... other rc files ... Plus a C program to locate and execute dependancies and/or to locate and print out the dependancy tree (to make sense of the nonsense). Which /etc/rc runs. -Matt Matthew Dillon Engineering, HiWay Technologies, Inc. & BEST Internet Communications & God knows what else. (Please include original email in any response) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message