'\" -*- coding: UTF-8 -*- .\" Copyright (C) 1998-2001 Miquel van Smoorenburg. .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA .\" .\"{{{}}} .\"{{{ Title .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH INITTAB 5 "Dec 4, 2001" "sysvinit " "File Formats" .\"}}} .\"{{{ Name .SH NÉV .\"}}} .\"{{{ Description inittab \- a sysv\-compatibilis init process által használt inittab fájl formátum. .SH LEÍRÁS The \fBinittab\fP file describes which processes are started at bootup and during normal operation (e.g.\& /etc/init.d/boot, /etc/init.d/rc, gettys...). \fBinit\fP(8) distinguishes multiple \fIrunlevels\fP, each of which can have its own set of processes that are started. Valid runlevels are \fB0\fP\-\fB6\fP plus \fBA\fP, \fBB\fP, and \fBC\fP for \fBondemand\fP entries. An entry in the \fBinittab\fP file has the following format: .RS .sp \fIazon.\fP:\fIfutásszint\fP:\fItevékenység\fP:\fIprocessz\fP .sp .RE .\"{{{ id A `#'\-el kezdödő sorok mellőzésre kerülnek. .IP \fIid\fP is a unique sequence of 1\-4 characters which identifies an entry in \fBinittab\fP (for versions of sysvinit compiled with the \fIold\fP libc5 (< 5.2.18) or a.out libraries the limit is 2 characters). .sp .\"}}} .\"{{{ runlevels Note: traditionally, for getty and other login processes, the value of the \fIid\fP field is kept the same as the suffix of the corresponding tty, e.g.\& \fB1\fP for \fBtty1\fP. Some ancient login accounting programs might expect this, though I can't think of any. .IP \fIfutásszintek\fP .\"}}} .\"{{{ action Leirják, hogy melyik futási szinteken jön létre az adott tevékenység. .IP \fItevékenység\fP .\"}}} .\"{{{ process leírja, hogy milyen tevékenység jöjjön létre. .IP \fIprocess\fP specifies the process to be executed. If the process field starts with a `+' character, \fBinit\fP 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 127 characters. .\"'<>? Please note that including certain characters in the process field will result in \fBinit\fP attempting to launch a shell to interpret the command contained in the process field. The characters which will trigger a shell are: \fB~`!$^&*()=|\{}[];\fP 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 \fBinit\fP 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 \fBinit\fP .\"}}} .PP A \fIfutásszintek\fP mező tőbb értéket is tartalmazhat, a különböző futásszintekhez. Például az \fB123\fP meghatározza, hogy a programnak az 1\-es, 2\-es és 3\-as futásszinten kell futnia. Az \fBhelybeni\fP futásszint bejegyzések lehetnek \fBA\fP, \fBB\fP, vagy \fBC\fP. A \fBsysinit\fP, \fBboot\fP, és \fBbootwait\fP futásszint bejegyzések figyelmen kívűl lesznek hagyva. .PP 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 \s-2SIGTERM\s0, majd a \s-2SIGKILL\s0 jelzéssel. .PP .\"{{{ respawn Érvényes tevékenységek a \fItevékenység\fP mezőhöz: .IP \fBrespawn\fP .\"}}} .\"{{{ wait A process újraindul valahányszor megszakítódik (pl:\& getty). .IP \fBwait\fP .\"}}} .\"{{{ once A process akkor indul el, amikor a megadott futási szintre lép, és az \fBinit\fP addig vár, amíg a processz fut.. .IP \fBonce\fP .\"}}} .\"{{{ boot A processzt egyszer, a futásszintre lépéskor indítja el. .IP \fBboot\fP .\"}}} .\"{{{ bootwait A process a rendszer újrainditása közben indul el. Ilyenkor a \fIfutásszint\fP mező tartalma nem érdekes. .IP \fBbootwait\fP .\"}}} .\"{{{ off A processzt a rendszer indulása közben indítja el, az \fBinit\fP megvárja míg lefut (például:\& /etc/rc). A \fIfutásszint\fP mező mellőzésre kerül. .IP \fBoff\fP .\"}}} .\"{{{ ondemand Semmit sem csinál. .IP \fBondemand\fP .\"}}} .\"{{{ initdefault Az \fBondemand\fP (helybeni) futásszinttel megjelölt process elindul, valahányszor a megadott helybeni futásszint meghivódik. Viszont nem következik be futásszint csere(\fBhelybeni\fP futási szintek az `a', a `b' és a `c'). .IP \fBinitdefault\fP .\"}}} .\"{{{ sysinit Az \fBinitdefault\fP 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 \fBinit\fP a konzolról kér be egy futásszintet. A \fIprocessz\fP mező ilyenkor figyelmen kívűl hagyódik. .IP \fBsysinit\fP .\"}}} .\"{{{ powerwait A process a rendszer újraindítása alatt hajtódik végre, mégpedig minden \fBboot\fP és \fBbootwait\fP bejegyzés elött. A \fIfutásszint\fP mező tartalma lényegtelen. .IP \fBpowerwait\fP .\"}}} .\"{{{ powerfail The process will be executed when the power goes down. \fBinit\fP is usually informed about this by a process talking to a UPS connected to the computer. \fBinit\fP will wait for the process to finish before continuing. .IP \fBpowerfail\fP .\"}}} .\"{{{ powerokwait Ugyanaz, mint a \fBpowerwait\fP, kivéve, hogy az \fBinit\fP ilyenkor nem várja meg a processz befejeződését. .IP \fBpowerokwait\fP .\"}}} .\"{{{ powerfailnow Ez a processz azonnal végre lesz hajtva, amint az \fBinit\fP arról értesűl, hogy az áram visszatért. .IP \fBpowerfailnow\fP .\"}}} .\"{{{ ctrlaltdel 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). .IP \fBctrlaltdel\fP .\"}}} .\"{{{ kbrequest The process will be executed when \fBinit\fP receives the \fBSIGINT\fP signal. This means that someone on the system console has pressed the \fBCTRL\-ALT\-DEL\fP key combination. Typically one wants to execute some sort of \fBshutdown\fP either to get into single\-user level or to reboot the machine. .IP \fBkbrequest\fP A process akkor lesz végrehajtva, ha az \fBinit\fP 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. .sp 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: .RS .sp alt keycode 103 = KeyboardSignal .sp .RE .\"}}} .\"}}} .\"{{{ Examples .SH PÉLDÁK Ez egy példa az inittab\-ra, ami emlékeztet a régi Linux\-os inittab\-ra: .RS .sp .nf .ne 7 # 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 .fi .sp .RE This inittab file executes \fI/etc/rc\fP during boot and starts gettys on tty1\-tty4. .PP Egy bonyolultabb inittab különbözö futási szintekkel (Lásd a kommenteket a fájl\-on belül): .RS .sp .nf .ne 19 # 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 .fi .sp .RE .\"}}} .\"{{{ Files .SH FÁJLOK .\"}}} .\"{{{ Author /etc/inittab .SH SZERZŐ .\"}}} .\"{{{ See also \fBinit\fP was written by .MT miquels@\:cistron\:.nl Miquel van Smoorenburg .ME . This manual page was written by .MT lederer@\:francium\:.informatik\:.uni\-bonn\:.de Sebastian Lederer .ME and modified by .MT u31b3hs@\:pool\:.informatik\:.rwth\-aachen\:.de Michael Haardt .ME . .SH "LÁSD MÉG" \fBinit\fP(8), \fBtelinit\fP(8) .\"}}}