: ---- 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