Subject: Re: startup files (was Re: Updating /etc... )
To: None <current-users@NetBSD.ORG>
From: Callum Gibson <callum@bain.oz.au>
List: current-users
Date: 12/21/1995 10:46:53
Perry E. Metzger writes:
[ 4 points ]

That sounds generally right.

:-)4) Is the only problem that I think is hard, and I believe that by
:-)having an explicit dependency list in each script file, we can
:-)probably have some code produce an ordering based on dependencies
:-)rather than trying to do this by kludges like putting numbers in front
:-)of the scripts.

Perhaps something like the way "make" expresses dependencies could be used.
It's certainly fairly easy to add a make target (ala package) and specify
that it wants certain other things to be running using this method. In the
case of shutting down a service, though, you'd need to find out what things
depended upon that service and shut them down as well which is not directly
doable from make.  (I'm not suggesting that init does a "make multi-user"
or anything. :-)

    C

Callum Gibson                                             callum@bain.oz.au
Fixed Income Division, DB Bain & Co.                          61 2 258 1620
## The opinions presented herein do not represent those of DB Bain & Co ###