Runlevels

  • Defaults are defined in Table 10-2.

    Table 10-2. Default Runlevels

    Runlevel

    Description

    0

    Halt

    1

    Single-user mode

    2

    Multiuser, without NFS

    3

    Full multiuser mode, without X

    4

    Unused

    5

    Full multiuser mode, with X

    6

    Reboot

  • Runlevels can be changed on-the-fly with init <runlevel> or telinit <runlevel>.

  • The default runlevel is stored in the file /etc/inittab.

  • The init process will run the scripts in /etc/rc.d/rcX.d (where X is your default runlevel) in order, sending a “stop” parameter to scripts that start with K and a “start” parameter to scripts that start with S.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.