System Administration Guide: Basic Administration

What Happens When the System Is Brought to Run Level 3

  1. The init process is started and reads the /etc/default/init file to set any environment variables. By default, only the TIMEZONE variable is set.

  2. Then init reads the inittab file and does the following:

    1. Identifies the initdefault entry, which defines the default run level (3).

    2. Executes any process entries that have sysinit in the action field so that any special initializations can take place before users login.

    3. Executes any process entries that have a 3 in the rstate field, which matches the default run level, 3.

      For a detailed description of how the init process uses the inittab file, see init(1M).

      The following table describes the keywords used for run level 3's action field.

      Table 11–3 Run Level 3 Action Keyword Descriptions

      Key Word 

      Description 

      powerfail

      Starts the process when the init process receives a power failure signal

      respawn

      Starts the process and restarts it when it dies 

      wait

      Starts the process and waits for it to finish before going on to the next entry for this run level 

The following table describes the processes (or commands) that are executed at run level 3.

Table 11–4 Command Descriptions for Run Level 3

Command or Script Name 

Description 

/usr/sbin/shutdown

Shuts down the system. The init process runs the shutdown command only if the system has received a power fail signal.

/sbin/rcS

Mounts and checks root (/), /usr, /var, and /var/adm file systems.

/sbin/rc2

Starts the standard system processes and brings the system up into run level 2 (multiuser level). 

/sbin/rc3

Starts NFS resource sharing for run level 3. 

/usr/lib/saf/sac -t 30

Starts the port monitors. This process is restarted if it fails. 

/usr/lib/saf/ttymon -g -h -p "`uname -n` console login: " -T terminal_type -d /dev/console -l console

Starts the ttymon process that monitors the console for login requests. This process is restarted if it fails.

The terminal_type on a SPARC based system is sun.

The terminal_type on an IA based system is AT386.