Here's a sample `rs.d' tree, originally based on my own system some time
ago.  It's been simplified, commented and updated since them.  It is
included for educational purposes - it isn't likely to work as-is on
anyone's system.

init:
   This directory holds scripts explicitly launched by the `init'
process. Presently it only contains alternative starting scripts for
multiuser and singleuser mode, but in future other scripts may be added.
(eg: for power-management or the keyboard-signal feature.)

init/multiuser:
   The is the base runset script. Note that it has a `#!' header, as it
is started as a normal executable. You could use an executable or other
script-language if you wanted.

init/singleuser:
   This is an alternative runset script, which runs when the system was
booted with the "single" option in LILO or equivalent.  Apart from being
only used when the `single' boot-option is provided, it is treated
identically to multiuser.
   I could have used a shell-script instead of a runset script (init
doesn't care as long as it is executable), but a feature of runset
- "ctty=1" - makes the resulting shell easier to use.

primary-startup:
   This is a helper shell script called from multiuser that handles
things that need to be done before the other partitions are mounted.
(Mostly network and checking partitions).

primary-wrapup:
   This is a helper shell script called from multiuser that handles
things that need to be done before shutting down or switching to
singleuser.  In this example, it shuts down the network.

secondary-startup:
   This is a helper shell script called from multiuser after everything
is running. This does noncritical startup procedures that require access
to /usr or /var.

secondary-wrapup:
   This is a helper shell script run during shutdown but before /usr is
dismounted.  It resets the virtual consoles.

switch:
   This directory holds runset scripts (only).  Any script in here is a
candiate for launch by the `switch' daemon.

switch/ppp:
   My PPP dialin script. Notice the directives, which allow any member of
my family to control it.

switch/zip:
switch/cdrom:
   Some scripts for mounting devices. Note that mounting things with
switch means that I don't need to worry about unmounting before I shut
down.

switch/X:
   Start the X Server on my system.

switch/unlock-usr:
   This enables modification to the /usr partition, using the remount
feature.

switch/servers:
   My usual system daemons. Note that some were specially hacked (to not
autobackground) so that I could control them from runset.

   This switched runset, alone, is running when the system boots up,
since it is specified on the switch command line in
/etc/rs.d/init/multiuser.
