Subject: Re: proposal on /etc/rc rework
To: Chris G Demetriou <Chris_G_Demetriou@ux2.sp.cs.cmu.edu>
From: Bill Sommerfeld <sommerfeld@orchard.medford.ma.us>
List: tech-userlevel
Date: 10/01/1996 00:16:03
I like the rc.d/* as links to init.d/* approach; sometimes you need a
way to turn off a package without deleting it entirely.

Here's a skeleton for a minimal way to do the automatic dependancy
ordering..

for pkg in /sbin/rc.d/*
do
	${pkg} startdeps
done | tsort | while read pkg
do
	/sbin/rc.d/${pkg} start
done

and /sbin/rc.d/named has (oversimplified):

...
case $1 in
deps)
	# "net before named"
	echo net named
	;;
start)
	/usr/sbin/named
	;;
stop)
	kill $(cat /var/run/named.pid)
	;;
esac

					- Bill