Re: System V init (was: Linux to be deployed in Mexican schools; Where was FreeBSD?)

[ Available lists | Index of freebsd-hackers | Month of Dec 1998 | Week of 1 Dec 1998 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Matthew Dillon <dillon@apollo.backplane.com>
Date
1 Dec 1998 00:04:00
Subject
Re: System V init (was: Linux to be deployed in Mexican schools; Where was FreeBSD?)
Message-ID
199812010803.AAA03964@apollo.backplane.com


[ Hide this part ]
:    ---- 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.
<dillon@backplane.com> (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


Elapsed time: 0.098 seconds