/etc/inittabIn der Datei /etc/inittab wird u.a. definiert:
Auszug:
# The default runlevel is defined here
id:5:initdefault: Hier wird der Runlevel,
in welchen gebootet wird,
definiert
# First script to be executed, if not booting in emergency (-b) mode
si::bootwait:/etc/init.d/boot Das erste Script,
welches gestartet wird. Hier meist eine Verzweigung zu boot.local u.a.
# /etc/init.d/rc takes care of runlevel handling
Die einzelnen
Level
#
# runlevel 0 is System halt (Do not use this for
initdefault!)
# runlevel 1 is Single user mode
# runlevel 2 is Local
multiuser without remote network (e.g. NFS)
# runlevel 3 is Full multiuser
with network
# runlevel 4 is Not used
# runlevel 5 is Full multiuser with
network and xdm
# runlevel 6 is System reboot (Do not use this for
initdefault!)
#
Die Anzahl und "Belegung" der virtuellen Konsolen
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc
1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc
3
#l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc
5
l6:6:wait:/etc/init.d/rc 6
Der Singleuser-Modus
#
what to do in single-user mode
ls:S:wait:/etc/init.d/rc
S
~~:S:respawn:/sbin/sulogin
........................
# getty-programs for the normal runlevels
# <id>:<runlevels>:<action>:<process>
# The "id" field MUST be the same as the last
# characters of the device (after "tty")
1:2345:respawn:/sbin/mingetty --noclear tty1
2:2345:respawn:/bin/login -f rk </dev/tty2 2>&1
Hier wird der Benutzer rk automatisch eingeloggt.
3:2345:respawn:/bin/su root -c top </dev/tty3 2>&1
Hier wird das Programm top unter dem Benutzer root gestartet.
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6