INITTAB

Section: Linux System Administrator's Manual (5)
Updated: Jun 04, 1996
Index
Return to Main Contents
 

NAME

inittab - ½Ã½ºÅÛ ¿î¿µ ½ÃÀÛ¿¡¼­ »ç¿ëµÇ´Â init ÇÁ·Î¼¼½ºÀÇ Ã³¸® ¹æ¹ýÀ» ÁöÁ¤ÇÏ°í ÀÖ´Â ÆÄÀÏ.  

DESCRIPTION

inittab ÆÄÀÏÀº ½Ã½ºÅÛÀÌ °¡µ¿µÉ ¶§ ÀϹÝÀûÀÎ ¿î¿µ ¹æ¹ýÀÇ Ã³¸®¿¡ ´ëÇÑ °ÍÀ» ¼³¸íÇÏ°í ÀÖ´Â ÆÄÀÏÀÌ´Ù. (¿¹¸¦ µé¸é, /etc/rc, gettys.. µîÀÇ Ã³¸®). init ÇÁ·Î¼¼½º´Â ´Ù¾çÇÑ runlevelsÀ» ±¸º°Çؼ­ »ç¿ëÇÑ´Ù. ÀÌ runlevelsÀº ½Ã½ºÅÛÀÇ ºÎÆðú Á¾·áµî¿¡ »ç¿ëµÈ´Ù. runlevels °ªÀº 0-6À̸ç, ondemand À§ÇØ A, B, C °¡ ¾²ÀδÙ. inittab ÆÄÀÏÀÇ ³»¿ëÀº ´ÙÀ½°ú °°Àº Çü½ÄÀ» ÃëÇÑ´Ù.

id:runlevels:action:process

`#'·Î ½ÃÀÛÇÏ´Â ¹®ÀåÀº ÁÖ¼®À¸·Î 󸮵ȴÙ.
id
inittab ¾È¿¡¼­ÀÇ °¢ Ç׸ñµé¿¡ ´ëÇÑ ½Äº°ÀÚ. ÃÖ´ë 4ÀÚ¸®. (libcÀÇ ¹öÀüÀÌ 5.2.18º¸´Ù ³·Àº ¹öÀüÀ̳ª, a.out ¶óÀ̺귯¸®·Î ÄÄÆÄÀÏ Çß´Ù¸é, »ç¿ëÇÒ ¼ö ÀÖ´Â ÃÖ´ë ¹®ÀÚ °¹¼ö´Â 2°³´Ù.

ÁÖÀÇ: getty³ª ´Ù¸¥ ·Î±×ÀÎ ÇÁ·Î¼¼½ºÀÇ »ç¿ë¿¡¼­´Â id Çʵ忡´Â ±× ÇÁ·Î¼¼½º¿¡¼­ »ç¿ëÇÏ´Â ttyÀÇ ³¡ÀÚ¸® ¼ýÀÚ°¡ ¿Í¾ßÇÑ´Ù. ¿¹¸¦ µé¸é, tty1Àº 1. ±×·¸Áö ¾ÊÀ¸¸é ¹Ù¸£°Ô ÀÛµ¿µÇÁö ¾ÊÀ» ¼öµµ ÀÖ´Ù.

runlevels
ÁøÇàÇÒ runlevel ÁöÁ¤.
action
action ÁöÁ¤
process
½ÇÇàÇÒ ÇÁ·Î¼¼½º ÁöÁ¤. ÀÌ Çʵ忡 `+' ¹®ÀÚ°¡ Á¦ÀÏ ¾Õ¿¡ ¿À¸é, init´Â ±× 󸮰úÁ¤¿¡¼­ utmp, wtmp 󸮸¦ ÇÏÁö ¾Ê°Ô ÇÑ´Ù. ÀÌ°ÍÀº gettys¿¡¼­ ½º½º·Î utmp/wtmp¸¦ ó¸®ÇÒ °æ¿ì ÇÊ¿äÇÏ´Ù. »ç¿ëÇÏ´Â gettys¸¦ È®ÀÎÇϱ⠹ٶõ´Ù.

action¿¡¼­ »ç¿ëÇÒ ¼ö ÀÖ´Â °ªÀº ´ÙÀ½°ú °°´Ù.

respawn
±× ÇÁ·Î¼¼½º°¡ Á¾·áµÇ¸é Ç×»ó ´Ù½Ã ½ÃÀÛÇÏ°Ô ÇÑ´Ù.(¿¹, getty)
wait
ÁöÁ¤ÇÑ runlevelÀÌ µÇ¸é ±× ÇÁ·Î¼¼½º°¡ ½ÇÇàµÇ°í, init´Â ±× ÇÁ·Î¼¼½º°¡ Á¾·áµÇ±â¸¦ ±â´Ù¸°´Ù.
once
ÁöÁ¤ÇÑ runlevelÀÌ µÇ¸é Çѹø¸¸ ±× ÇÁ·Î¼¼½º¸¦ ½ÇÇàÇÑ´Ù.
boot
½Ã½ºÅÛ ºÎÆà ¶§¿¡ ±× ÇÁ·Î¼¼½º¸¦ ½ÇÇàÇÑ´Ù. À̶§´Â runlevel °ªÀÌ ¹«½ÃµÈ´Ù.
bootwait
½Ã½ºÅÛ ºÎÆà ¶§¿¡ ±× ÇÁ·Î¼¼½º°¡ ½ÇÇàµÇ´Âµ¥, À̶§ init´Â ±× ÇÁ·Î¼¼½º°¡ Á¾·áµÇ±â¸¦ ±â´Ù¸°´Ù.(¿¹, /etc/rc). À̶§´Â runlevel °ªÀÌ ¹«½ÃµÈ´Ù.
off
¾Æ¹«°Íµµ ¾Æ´Ï´Ù. ´ÜÁö id¸¸ Á¸ÀçÇÏ´Â °Í»Ó.
ondemand
ÁöÁ¤ÇÑ ondemand runlevelÀÌ È£Ãâ µÉ ¶§¸¶´Ù ±× ÇÁ·Î¼¼½º¸¦ ½ÇÇàÇÑ´Ù. ÇÏÁö¸¸ runlevel °ªÀº ¹Ù²îÁö ¾Ê´Â´Ù. (ondemand runlevel °ªÀº 'a', 'b', 'c' ÀÌ´Ù.)
initdefault
½Ã½ºÅÛ ºÎÆà µÚ¿¡ ½ÇÇàµÉ runlevelÀ» ÁöÁ¤ÇÑ´Ù. ¸¸¾à ÀÌ ºÎºÐÀÌ ¾øÀ¸¸é, ¾î¶² runlevel·Î ½ÇÇàÇÒ °ÍÀÌÁö, Äֿܼ¡¼­ ¹°¾îº»´Ù. process Çʵå´Â ¹«½ÃµÈ´Ù.
sysinit
½Ã½ºÅÛ ºÎÆÃÀ» ÇÒ ¶§¿¡ ±× ÇÁ·Î¼¼½º°¡ ½ÇÇàµÈ´Ù. ÀÌ°ÍÀº boot, bootwait·Î ÁöÁ¤µÈ ÇÁ·Î¼¼½ºº¸´Ù ¸ÕÀú ½ÇÇàµÈ´Ù. process Çʵå´Â ¹«½ÃµÈ´Ù.
powerwait
init°¡ SIGPWR ½Ã±×³¯À» ¹Þ¾ÒÀ» ¶§ ±× ÇÁ·Î¼¼½º°¡ ½ÇÇàµÈ´Ù. SIGPWRÀº Àü¿ø °ø±Þ¿¡ ¹®Á¦°¡ »ý°åÀ» ¶§ ¹ß»ýÇÏ´Â ½Ã±×³¯ÀÌ´Ù. Init´Â ±× ÇÁ·Î¼¼½º ÀÛ¾÷ÀÌ ³¡³¯ ¶§±îÁö ¾Æ¹« ÀÛ¾÷µµ ÇÏÁö ¾Ê´Â´Ù.
powerfail
powerwait¿Í °°Áö¸¸, init´Â ±× ÇÁ·Î¼¼½º ÀÛ¾÷ÀÌ ³¡³ª±â¸¦ ±â´Ù¸®Áö ¾Ê´Â´Ù.
powerokwait
init°¡ SIGPWR ½Ã±×³¯À» ¹Þ¾ÒÀ» ¶§ ±× ÇÁ·Î¼¼½º°¡ ½ÇÇàµÈ´Ù. OK¶ó´Â ´Ü¾î¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â /etc/powerstatus ÆÄÀÏÀÌ SIGPWR ½Ã±×³¯À» Á¦°øÇÑ´Ù.
ctrlaltdel
init°¡ SIGINT ½Ã±×³¯À» ¹Þ¾ÒÀ» ¶§ ±× ÇÁ·Î¼¼½º°¡ ½ÇÇàµÈ´Ù. SIGINT´Â ½Ã½ºÅÛ Äֿܼ¡¼­ ´©±º°¡°¡ CTRL-ALT-DEL ±Û¼è¸¦ ´­·¶À» ¶§ ¹ß»ýÇÏ´Â ½Ã½º³¯ÀÌ´Ù. ÀÌ°ÍÀº ÀüÇüÀûÀ¸·Î ÄÄÇ»Å͸¦ ¸®ºÎÆÃÇϰųª, ´ÜÀÏ »ç¿ëÀÚ ¸ðµå¸¦ »ç¿ëÇϱâ À§Çؼ­ »ç¿ëµÈ´Ù.
kbrequest
ÄÜ¼Ö ±Û¼èÆÇ¿¡¼­ Ưº°ÇÏ°Ô ÁöÁ¤µÈ ±Û¼è°¡ ´­·ÁÁ³À» ¶§, ¹ß»ýÇÏ´Â ÇÑ ½Ã±×³¯À» init°¡ ¹Þ¾ÒÀ» ¶§, ±× ÇÁ·Î¼¼½º¸¦ ½ÇÇàÇÑ´Ù.
ÀÌ ºÎºÐ¿¡ ´ëÇÑ À̾߱â´Â ¾ÆÁ÷ ¿©±â¼­ ÀÚ¼¼È÷ ´Ù·çÁö´Â ¸øÇÑ´Ù. Á»´õ ÀÚ¼¼ÇÑ Á¤º¸¸¦ ¿øÇϸé kbd-x.xx ÆÖÅ°ÁöÀÇ ¹®¼­µéÀ» Âü°íÇÑ´Ù. (ÀÌ ¹®¼­´Â kbd-0.91 ÆÖÅ°Áö¸¦ ¹ÙÅÁÀ¸·Î ¾²¿©Á³´Ù.) º¸Åë, ±Û¼èÁöÁ¤Àº "Spawn_Console" actionÀ¸·Î ÇÑ´Ù. ¿¹¸¦ µé¾î, Alt-À­È­»ìÇ¥±Û¼è¸¦ ÁöÁ¤ÇÏ°í ½ÍÀ¸¸é, ±Û¼èÁöÁ¤ÆÄÀÏ(keymap)¿¡ ´ÙÀ½ ³»¿ëÀ» Ãß°¡ÇÑ´Ù.

alt keycode 103 = Spawn_Console

ÇϳªÀÇ ÇÁ·Î¼¼½º°¡ °¢°¢ ´Ù¸¥ runlevel¿¡¼­µµ °°ÀÌ ½ÇÇàµÇ°Ô ÇÏ·Á¸é, runlevel Çʵ忡´Â ´Ù¸¥ runlevel µéÀ» ÇÔ²² ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù. ¿¹, 123. ondemand °ªÀ¸·Î ÁöÁ¤ÇÑ´Â A, B, Cµµ ¸¶Âù°¡Áö´Ù. action °ªÀÌ sysinit, boot, bootwait·Î ÁöÁ¤µÇ¾î ÀÖÀ¸¸é ±× runlevel °ªÀº ¹«½ÃµÈ´Ù.

runleve °ªÀÌ ¹Ù²î¾úÀ» ¶§, ±× »õ·Î ¹Ù²ï runlevel¿¡ ´ëÇÑ Ã³¸® °úÁ¤À» µû·Î ÁöÁ¤ÇÏÁö¾Ê¾Ò´Ù¸é, SIGTERM, SIGKILL°ú ÇÔ²², ±× ÇÁ·Î¼¼½º´Â Á¾·áµÈ´Ù.  

EXAMPLES

ÀÌ°ÍÀº ¿¾³¯ 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 ÆÄÀÏÀ» ½ÇÇàÇÏ°í, tty1-tty4¿¡¼­ getty¸¦ ½ÇÇàÇÑ´Ù.

´ÙÀ½ ºÎºÐÀº ´Ù¸¥ runlevel¿¡¼­ÀÇ °¢ ¼³Á¤µéÀ» ÁöÁ¤ÇÑ´Ù(ÁÖ¼® ºÎºÐÀ» Âü°í).

# 2 ´Ü°è Á¤ÀÇ 
id:2:initdefault:

# ÃÖ¿ì¼±À¸·Î ½Ã½ºÅÛ ÃʱâÈ­
si::sysinit:/etc/rc.d/bcheckrc

# runlevel 0,6Àº °¢°¢ halt¿Í reboot, 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 finger salute"¿¡¼­ ¾î¶»°Ô....
ca::ctrlaltdel:/sbin/shutdown -t5 -rf now

# runlevel 2&3: ÄÜ¼Ö getty, level 3: ¸ðµ© 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

 

FILES

/etc/inittab  

AUTHOR

Init was written by Miquel van Smoorenburg (miquels@cistron.nl), the manual page was written by Sebastian Lederer (lederer@francium.informatik.uni-bonn.de) and modified by Michael Haardt (u31b3hs@pool.informatik.rwth-aachen.de).  

SEE ALSO

init(8), telinit(8)


 

Index

NAME
DESCRIPTION
EXAMPLES
FILES
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 08:07:01 GMT, March 25, 2004