'\" -*- 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 "4 de diciembre de 2001" "sysvinit " "File Formats" .\"}}} .\"{{{ Name .SH NOMBRE .\"}}} .\"{{{ Description inittab \- formato del fichero inittab usado por el proceso init compatible SysV .SH DESCRIPCIÓN El fichero \fBinittab\fP describe qué procesos se inician en la carga y durante la operación normal (por ejemplo, \& /etc/init.d/boot, /etc/init.d/rc, gettys...). \fBinit\fP(8) distingue múltiples \fIniveles de ejecución\fP, cada uno de los cuales puede tener su propio conjunto de procesos que se inician. Los niveles de ejecución válidos son \fB0\fP\-\fB6\fP más \fBA\fP, \fBB\fP y \fBC\fP para entradas \fBbajo demanda\fP. Una entrada del fichero \fBinittab\fP tiene el siguiente formato: .RS .sp \fIid\fP:\fIniveles_ejecución\fP:\fIacción\fP:\fIproceso\fP .sp .RE .\"{{{ id Las líneas que comienzan con `#' se ignoran. .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 \fIniveles_ejecución\fP .\"}}} .\"{{{ action es la lista de niveles de ejecución para lo cuales se llevarán a cabo las acciones especificadas. .IP \fIacción\fP .\"}}} .\"{{{ process describe qué acción se debería llevar a cabo. .IP \fIproceso\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 El campo \fIniveles_ejecución\fP tiene que contener múltiples caracteres para diferente niveles de ejecución. Por ejemplo, \fB123\fP especifica que el proceso se debería iniciar en los niveles de ejecución 1, 2 y 3. Las entrada de \fIniveles de ejecución\fP \fBbajo demanda\fP pueden contener una \fBA\fP, \fBB\fP, o \fBC\fP. Las entradas de campos de \fInivel_ejecución\fP de \fBsysinit\fP, \fBboot\fP y \fBbootwait\fP se ignoran. .PP Cuando se cambia un nivel de ejecución, cualesquiera procesos en ejecución que no estén especificados en el nuevo nivel de ejecución se matan, primero con \s-2SIGTERM\s0 y después con \s-2SIGKILL\s0. .PP .\"{{{ respawn Acciones válidas para el campo \fIacción\fP son: .IP \fBrespawn\fP .\"}}} .\"{{{ wait El proceso se reiniciará cuando termine (v.g.\& getty). .IP \fBwait\fP .\"}}} .\"{{{ once El proceso se iniciará una vez cuando se entre en el nivel de ejecución específico e \fBinit\fP esperará a su terminación. .IP \fBonce\fP .\"}}} .\"{{{ boot El proceso se ejecutará una vez cuando se entre en el nivel de ejecución especificado. .IP \fBboot\fP .\"}}} .\"{{{ bootwait El proceso se ejecutará durante el arranque del sistema. El campo The \fIniveles_ejecución\fP se ignora. .IP \fBbootwait\fP .\"}}} .\"{{{ off El proceso se ejecutará durante el arranque del sistema, mientras \fBinit\fP espera su terminación (v.g.\& /etc/rc). El campo \fIniveles_ejección\fP se ignora. .IP \fBoff\fP .\"}}} .\"{{{ ondemand Esto no hace nada. .IP \fBondemand\fP .\"}}} .\"{{{ initdefault Un proceso marcado con un nivel de ejecución \fBondemand\fP se ejecutará cuando se llame al nivel de ejecución especificado \fBondemand\fP. Sin embargo, no se produce cambio de nivel de ejecución (los niveles de ejecución \fBondemand\fP son `a', `b', y `c'). .IP \fBinitdefault\fP .\"}}} .\"{{{ sysinit Una entrada \fBinitdefault\fP especifica el nivel de ejecución en el cual se entrará tras el arranque del sistema. Si no existe ninguno, \fBinit\fP pedirá un nivel de ejecución en la consola. El campo \fIproceso\fP se ignora. .IP \fBsysinit\fP .\"}}} .\"{{{ powerwait El proceso se ejecutará durante el arranque del sistema. Se ejecutará antes de cualquier entrada \fBboot\fP o \fB bootwait\fP. El campo \fIniveles_ejecución\fP se ignora. .IP \fBpowerwait\fP .\"}}} .\"{{{ powerfail El proceso se ejecutará cuando \fBinit\fP reciba la señal SIGPWR, indicando que hay algún problema con la alimentación eléctrica. \fBinit\fP esperará que el proceso termine antes de continuar. .IP \fBpowerfail\fP .\"}}} .\"{{{ powerokwait Como en \fBpowerwait\fP, excepto que \fBinit\fP no espera que el proceso se complete. .IP \fBpowerokwait\fP .\"}}} .\"{{{ powerfailnow This process will be executed as soon as \fBinit\fP is informed that the power has been restored. .IP \fBpowerfailnow\fP .\"}}} .\"{{{ ctrlaltdel Como en \fBpowerwait\fP, excepto que \fBinit\fP no espera que el proceso se complete. .IP \fBctrlaltdel\fP .\"}}} .\"{{{ kbrequest El proceso se ejecutará cuando \fBinit\fP reciba la señal \fBSIGINT\fP. Esto significa que alguien en la consola del sistema ha pulsado la combinación de teclas \fBCTRL\-ALT\-DEL\fP . Normalmente uno quiere ejecutar algún tipo de \fBshutdown\fP bien para entrar en modo monousuario o reiniciar la máquina. .IP \fBkbrequest\fP El proceso se ejecutará cuando \fBinit\fP reciba una señal del gestor de teclado que se ha pulsado una combinación especial de teclas en el teclado de la consola. .sp La documentación para esta función no está completa aun; se puede encontrar más documentación en los paquetes kbd\-x.xx (el mas reciente era kbd\-0.94 en el momento de escribir esto). Básicamente quiere aplicar alguna combinación de teclado a la acción "KeyboardSignal". Por ejemplo, para aplicar Alt\-FlechaArriba para este propósito use lo siguiente en su fichero keymap: .RS .sp alt keycode 103 = KeyboardSignal .sp .RE .\"}}} .\"}}} .\"{{{ Examples .SH EJEMPLOS Esto es un ejemplo de un inittab que reensambla el viejo inittab de Linux: .RS .sp .nf .ne 7 # inittab para 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 .fi .sp .RE Este fichero inittab ejecuta \fI/etc/rc\fP durante el arranque e inicia gettys en tty1\-tty4. .PP Un \fBinittab\fP más elaborado con diferentes niveles de ejecución (vea los comentarios interiores): .RS .sp .nf .ne 19 # Nivel para ejecutar 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 # Qué hacer ante el "saludo de 3 dedos". 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 ARCHIVOS .\"}}} .\"{{{ Author /etc/inittab .SH AUTOR .\"}}} .\"{{{ See also \fBInit\fP fue escrito por .MT miquels@\:cistron\:.nl Miquel van Smoorenburg .ME . Esta página de manual fue escrita por .MT lederer@\:francium\:.informatik\:.uni\-bonn\:.de Sebastian Lederer .ME y modificada por .MT u31b3hs@\:pool\:.informatik\:.rwth\-aachen\:.de Michael Haardt .ME . .SH "VÉASE TAMBIÉN" \fBinit\fP(8), \fBtelinit\fP(8) .\"}}}