Chapter 10

The Boot Process

In the boot PROM:
OK boot [device] [-options]

device can be any device but usually an nvalias alias, like:
  disk
  cdrom
  net
  disk3

Common options:
    -s   
Single-user   Boot into single-user state. maintenence or emergency recovery
    -a   
Ask me  -- ask about root, swap, etc.
    -r   
reconfigure -- probe (look) for new devices or removed ones.
    -v   
Verbose -- detailed startup messssages.

Finding the current run level:

Who -r
shows the current run level

who             can also show who's logged in,
who am i     tells who you're logged in as

Run levels:

0   Prom monitor
1   Single User
2   multi-user, no NFS or other shared resources
3   full multi-user
4   Not normally used
5   Poweroff (if possible). halt otherwise
6   Reboot
S   == 1

Default runlevel  is in /etc/inittab as 'initdefault' entry

S and K scripts

K scripts are run first.  run with 'stop' parameter.  expected to explicitly shut down
the named services.

S scripts are run later.  Run with 'start' parameter. will usually start services.

S and K scriipts are run according to order... Usually ordered by first 2 digits.