initscripts/etc/inittab
2011-04-26 12:26:24 +02:00

52 lines
1.8 KiB
Plaintext

# /etc/inittab - main configuration file of /etc/init
#
# Copyright (c) 2003-2006 by Silvan Calarco <silvan.calarco@mambasoft.it>
# Copyright (c) 2003-2006 by Davide Madrisan <davide.madrisan@gmail.com>
#
# This is the main configuration file of /etc/init, which is executed
# by the kernel on startup.
# It describes what scripts are used for the different run-levels.
# All scripts for runlevel changes are in /etc/init.d/.
# this is the runlevel which should be entered after system boot
id:3:initdefault:
# first script to be executed during system boot
si::sysinit:/etc/rc.d/init.d/rc.sysinit
# /etc/init.d/rc takes care of runlevel handling:
# runlevel 0 -- system halt (do NOT use this for initdefault)
# runlevel 1 -- maintenance (single user) mode
# runlevel 2 -- local multiuser without remote network
# runlevel 3 -- full multiuser with network
# runlevel 4 -- not used
# runlevel 5 -- full multiuser with network and xdm
# runlevel 6 -- system reboot (do NOT use this for initdefault)
#
l0:0:wait:/etc/rc.d/init.d/rc 0
l1:S1:wait:/etc/rc.d/init.d/rc 1
l2:2:wait:/etc/rc.d/init.d/rc 2
l3:3:wait:/etc/rc.d/init.d/rc 3
l4:4:wait:/etc/rc.d/init.d/rc 4
l5:5:wait:/etc/rc.d/init.d/rc 5
l6:6:wait:/etc/rc.d/init.d/rc 6
# what to do when init receives the SIGINT signal (CTRL-ALT-DEL)
# note: 'shutdown -a' to use /etc/shutdown.allow
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
# what to do in single-user mode
su:S016:once:/sbin/sulogin
# agetty-programs for the normal runlevels
# note: the id field should be the tty suffix of the corresponding tty,
# e.g. 1 for tty1; otherwise, the login accounting might not work
# correctly
1:2345:respawn:/sbin/agetty tty1 9600
2:2345:respawn:/sbin/agetty tty2 9600
3:2345:respawn:/sbin/agetty tty3 9600
4:2345:respawn:/sbin/agetty tty4 9600
5:2345:respawn:/sbin/agetty tty5 9600
6:2345:respawn:/sbin/agetty tty6 9600