Man page - initscript(5)

Packages contains this manual

Available languages:

en fr es pl pt ja id fi de

Manual

INITSCRIPT

NOMBRE
SINOPSIS
DESCRIPCIÓN
EJEMPLOS
NOTAS
ARCHIVOS
AUTOR
VÉASE TAMBIÉN

NOMBRE

initscript - guión que ejecuta órdenes inittab

SINOPSIS

/bin/sh /etc/initscript id niveles_de_ejecucion acción proceso

DESCRIPCIÓN

Cuando el guión de entorno /etc/initscript existe, init lo usará para ejecutar órdenes para inittab . Este guión puede ser usado para cosas como, por ejemplo, colocar los valores por defecto ulimit y umask para cada proceso.

EJEMPLOS

Este es un ejemplo de initscript, que se podría instalar en tu sistema como /etc/initscript.sample .

#
# initscript Ejecutado por init(8) para cada programa,
# requiere un formato como el siguiente
#
# /bin/sh /etc/initscript <id> <nivel> <acción> <proceso>
#

# Colocamos umask para salvar el nivel, y permitir volcados de
# memoria.
umask 022
ulimit -c 2097151
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH

# Increase the hard file descriptor limit for all processes
# to 8192. The soft limit is still 1024, but any unprivileged
# process can increase its soft limit up to the hard limit
# with "ulimit -Sn xxx" (needs a 2.2.13 or later Linux kernel).
ulimit -Hn 8192

# Ejecutamos el programa.
eval exec "$4"

NOTAS

This script is not meant as startup script for daemons or services. It has nothing to do with a rc.local style script. It’s just a handler for things executed from /etc/inittab . Experimenting with this can make your system un(re)bootable.

ARCHIVOS

/etc/inittab, /etc/initscript.

AUTOR

Miquel van Smoorenburg

VÉASE TAMBIÉN

inittab (5), init (8)