Man page - inittab(5)
Packages contains this manual
Available languages:
en fr es pl pt hu ja zh_TW zh_CN deManual
INITTAB
NĂVLEĂRĂS
PĂLDĂK
FĂJLOK
SZERZĆ
LĂSD MĂG
NĂV
inittab - a sysv-compatibilis init process ĂĄltal hasznĂĄlt inittab fĂĄjl formĂĄtum.
LEĂRĂS
The inittab file describes which processes are started at bootup and during normal operation (e.g. /etc/init.d/boot, /etc/init.d/rc, gettys...). init (8) distinguishes multiple runlevels , each of which can have its own set of processes that are started. Valid runlevels are 0 - 6 plus A , B , and C for ondemand entries. An entry in the inittab file has the following format:
azon. : futåsszint : tevékenység : processz
A â#â-el kezdödĆ sorok mellĆzĂ©sre kerĂŒlnek.
|
id |
is a unique sequence of 1-4 characters which identifies an entry in inittab (for versions of sysvinit compiled with the old libc5 (< 5.2.18) or a.out libraries the limit is 2 characters). |
Note: traditionally, for getty and other login processes, the value of the id field is kept the same as the suffix of the corresponding tty, e.g. 1 for tty1 . Some ancient login accounting programs might expect this, though I canât think of any.
futĂĄsszintek
Leirjåk, hogy melyik futåsi szinteken jön létre az adott tevékenység.
tevékenység
leĂrja, hogy milyen tevĂ©kenysĂ©g jöjjön lĂ©tre.
process
specifies the process to be executed. If the process field starts with a â+â character, init will not do utmp and wtmp accounting for that process. This is needed for gettys that insist on doing their own utmp/wtmp housekeeping. This is also a historic bug. The length of this field is limited to 253 characters. Anything beyond 253 will result in a log warning and the process command line being skipped/ignored.
Please note that including certain characters in the process field will result in init attempting to launch a shell to interpret the command contained in the process field. The characters which will trigger a shell are: Ëâ!$Ë&*()=|}[];"â<>?
On systems which do not have a shell to be launched or which do not wish to use a shell to interpret the process field, the process field can be prefixed with the @ symbol. The @ will be ignored and everything followed will be treated as a command to be launched, literally, by the init service.
In cases where both a + and @ sign are to be used (to turn off logging and shell interpretation), place the + sign before the @ symbol. Both flags will be handled and then everything following the @ will be handled by init
A futĂĄsszintek mezĆ tĆbb Ă©rtĂ©ket is tartalmazhat, a kĂŒlönbözĆ futĂĄsszintekhez. PĂ©ldĂĄul az 123 meghatĂĄrozza, hogy a programnak az 1-es, 2-es Ă©s 3-as futĂĄsszinten kell futnia. Az helybeni futĂĄsszint bejegyzĂ©sek lehetnek A , B , vagy C . A sysinit , boot , Ă©s bootwait futĂĄsszint bejegyzĂ©sek figyelmen kĂvƱl lesznek hagyva.
Ha a rendszer futĂĄsszintje megvĂĄltozik, az összes olyan program, ami az Ășj futĂĄsszinthez nincs bejegyezve, le lesz ĂĄlĂtva, elĆszĆr a SIGTERM , majd a SIGKILL jelzĂ©ssel.
ĂrvĂ©nyes
tevékenységek a
tevékenység
mezĆhöz:
respawn
A process Ășjraindul valahĂĄnyszor megszakĂtĂłdik (pl: getty).
|
wait |
A process akkor indul el, amikor a megadott futĂĄsi szintre lĂ©p, Ă©s az init addig vĂĄr, amĂg a processz fut.. |
||
|
once |
A processzt egyszer, a futĂĄsszintre lĂ©pĂ©skor indĂtja el. |
||
|
boot |
A process a rendszer ĂșjrainditĂĄsa közben indul el. Ilyenkor a futĂĄsszint mezĆ tartalma nem Ă©rdekes. |
bootwait
A processzt a rendszer indulĂĄsa közben indĂtja el, az init megvĂĄrja mĂg lefut (pĂ©ldĂĄul: /etc/rc). A futĂĄsszint mezĆ mellĆzĂ©sre kerĂŒl.
|
off |
Semmit sem csinĂĄl. |
ondemand
Az ondemand (helybeni) futĂĄsszinttel megjelölt process elindul, valahĂĄnyszor a megadott helybeni futĂĄsszint meghivĂłdik. Viszont nem következik be futĂĄsszint csere( helybeni futĂĄsi szintek az âaâ, a âbâ Ă©s a âcâ).
initdefault
Az initdefault bejegyzĂ©s megadja, hogy melyik futĂĄsi szintre lĂ©pĂŒnk be a rendszer ĂșjraindĂtĂĄsa utĂĄn. Ha ilyent nem adtunk meg, akkor az init a konzolrĂłl kĂ©r be egy futĂĄsszintet. A processz mezĆ ilyenkor figyelmen kĂvƱl hagyĂłdik.
sysinit
A process a rendszer ĂșjraindĂtĂĄsa alatt hajtĂłdik vĂ©gre, mĂ©gpedig minden boot Ă©s bootwait bejegyzĂ©s elött. A futĂĄsszint mezĆ tartalma lĂ©nyegtelen.
powerwait
The process will be executed when the power goes down. init is usually informed about this by a process talking to a UPS connected to the computer. init will wait for the process to finish before continuing.
powerfail
Ugyanaz, mint a powerwait , kivĂ©ve, hogy az init ilyenkor nem vĂĄrja meg a processz befejezĆdĂ©sĂ©t.
powerokwait
Ez a processz azonnal végre lesz hajtva, amint az init arról értesƱl, hogy az åram visszatért.
powerfailnow
Ez a processz akkor lesz vegrehajtva, ha azt közlik az init-el, hogy a kĂŒlsĆ UPS elemei majdnem teljesen ĂŒresek, Ă©s az ĂĄramszolgĂĄltatĂĄs megszĂŒnt (feltĂ©telezi, hogy a kĂŒlsĆ UPS Ă©s az ellenĆrzĆ program kĂ©pes ezt az ĂĄllapotot Ă©rzĂ©kelni).
ctrlaltdel
The process will be executed when init receives the SIGINT signal. This means that someone on the system console has pressed the CTRL-ALT-DEL key combination. Typically one wants to execute some sort of shutdown either to get into single-user level or to reboot the machine.
kbrequest
A process akkor lesz végrehajtva, ha az init egy szignålt kap a billentyƱzet kezelötöl, ami azt jelzi, hogy egy speciålis billentyƱ kombinåció lett lenyomva a konzol billentyƱzetén.
Ennek a funkciĂłnak a leĂrĂĄsa mĂ©g nem teljes; tovĂĄbbi dokumentĂĄciĂłt a kbd-x.xx csomagokban lehet talĂĄlni (a legĂșjabb a kbd-0.94 csomag volt a dokumentĂĄcĂł ĂrĂĄsa idejĂ©n). ValĂłszĂnĂŒleg nĂ©hĂĄny billentyƱzet kombinĂĄciĂłt akar feltĂ©rkĂ©pezni a "KeyboardSignal" akciĂłhoz. PĂ©ldĂĄul, hogy az Alt-felfelĂ©nyĂl kombinĂĄciĂłt e cĂ©lbĂłl feltĂ©rkĂ©pezze, hasznĂĄlja a következöt a keymaps fĂĄjljĂĄban:
alt keycode 103 = KeyboardSignal
PĂLDĂK
Ez egy példa az inittab-ra, ami emlékeztet a régi Linux-os inittab-ra:
# inittab
linux-ra
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
This inittab file executes /etc/rc during boot and starts gettys on tty1-tty4.
Egy bonyolultabb inittab kĂŒlönbözö futĂĄsi szintekkel (LĂĄsd a kommenteket a fĂĄjl-on belĂŒl):
# Szint amin
fussunk
id:2:initdefault:
# Boot-time
system configuration/initialization script.
si::sysinit:/etc/init.d/rcS
# What to do in
single-user mode.
Ë:S:wait:/sbin/sulogin
# /etc/init.d
executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.
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
# Mit
csinĂĄljunk a "3 ujjas
tisztelgés"-nél.
ca::ctrlaltdel:/sbin/shutdown -t1 -h now
# Runlevel 2,3:
getty on virtual consoles
# Runlevel 3: getty on terminal (ttyS0) and modem (ttyS1)
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
S0:3:respawn:/sbin/getty -L 9600 ttyS0 vt320
S1:3:respawn:/sbin/mgetty -x0 -D ttyS1
FĂJLOK
/etc/inittab
SZERZĆ
init was written by Miquel van Smoorenburg . This manual page was written by Sebastian Lederer and modified by Michael Haardt .
LĂSD MĂG
init (8), telinit (8)