Local rc scripts (was: Software installation opinions needed)

Peter da Silva peter at ficc.ferranti.com
Sun Sep 30 08:53:41 AEST 1990


The System V startup model might repay study.

	inittab ---> /etc/rc0
		     /etc/rc2 ---> /etc/rc2.d/S01MOUNTFSYS
				   /etc/rc2.d/S05RMTMPFILES
				   ...
		     /etc/rc3 ---> /etc/rc3.d/S08ina961
				   /etc/rc3.d/S20SV_onet
				   ...
		     ...

Run level 2 starts up all the multiuser stuff. Run level 3 is typically used
for the network level. An application program just needs to install a startup
file in /etc/rc?.d and it is automatically initialised. When shutting down,
then, it runs the rc files in reverse order and a different set of files is
run:

	inittab ---> /etc/rc2 ---> /etc/rc2.d/K20SV_onet
				   ...
		     /etc/rc0 ---> /etc/rc0.d/K98UMOUNTFSYS
				   ...

I'm really surprised that Sun and Berkeley haven't picked up on this yet. The
system for handling drivers is similarly clean...
-- 
Peter da Silva.   `-_-'
+1 713 274 5180.   'U`
peter at ferranti.com



More information about the Comp.unix.admin mailing list