INITTAB(5) Linux INITTAB(5) NAME inittab - sysv init inittab , ( /etc/init.d/boot, /etc/init.d/rc, getty ). Init(8) runlevels () , . 0-6 ondemand A, B C. inittab : id:runlevels:action:process `#' . id inittab , 1-4 ( 5.2.18 a.out sysvinit , 2 ). : getty , id tty , 1 tty1, , . runlevels . action . process . process `+' , init utmp wtmp . getty utmp/wtmp , . runlevels , 123 1, 2 3 . ondemand runlevels A, B, C. sysinit, boot, bootwait runlevels . , , SIGTERM , SIGKILL. action : respawn ( getty). wait , init . once . boot . runlevels . bootwait . init ( /etc/rc). runlevels . off . ondemand ondemand ondemand . , (ondemand `a', `b', `c'). initdefault initdefault , , init . process . sysinit . boot bootwait . runlevels . powerwait . UPS init , Init . powerfail powerwait, init . powerokwait init . powerfailnow init UPS () . ( UPS ). ctrlaltdel init SIGINT . CTRL-ALT-DEL , , shutdown . kbrequest init . ; kbd-x.xx ( kbd-0.94). "KeyboardSignal" , (Alt-) : alt keycode 103 = KeyboardSignal Linux inittab : # inittab for linux id:1:initdefault: rc::bootwait:/etc/rc 1:1:respawn:/etc/getty 9600 tty1 2:1:respawn:/etc/getty 9600 tty2 3:1:respawn:/etc/getty 9600 tty3 4:1:respawn:/etc/getty 9600 tty4 /etc/rc ty1-tty4 getty . inittab (): # id:2:initdefault: # . si::sysinit:/etc/rc.d/bcheckrc # 0 , 6 , 1 . l0:0:wait:/etc/rc.d/rc.halt l1:1:wait:/etc/rc.d/rc.single l2:2345:wait:/etc/rc.d/rc.multi l6:6:wait:/etc/rc.d/rc.reboot # "3 " . ca::ctrlaltdel:/sbin/shutdown -t5 -rf now # 23: getty , 3 modem getty. 1:23:respawn:/sbin/getty tty1 VC linux 2:23:respawn:/sbin/getty tty2 VC linux 3:23:respawn:/sbin/getty tty3 VC linux 4:23:respawn:/sbin/getty tty4 VC linux S2:3:respawn:/sbin/uugetty ttyS2 M19200 /etc/inittab Init Miquel van Smoorenburg (miquels@cistron.nl) . Sebastian Lederer (lederer@francium.informatik.uni- bonn.de) , Michael Haardt (u31b3hs@pool.informatik.rwth- aachen.de) . init(8), telinit(8) Yin Huaming 2002713 Linux man http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh May 19, 1998 INITTAB(5)