'\" -*- coding: UTF-8 -*- .\" Copyright (C) 1998-2003 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 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH INITSCRIPT 5 "10. Juli 2003" "sysvinit " Dateiformate .SH BEZEICHNUNG initscript \- Skript, das Inittab\-Befehle ausführt .SH ÜBERSICHT /bin/sh /etc/initscript ID Runlevels Aktion Prozess .SH BESCHREIBUNG Wenn das Shell\-Skript \fI/etc/initscript\fP existiert, wird es von \fBinit\fP verwendet, um Befehle aus \fIinittab\fP auszuführen. Dieses Skript kann verwendet werden, um für Parameter wie \fIulimit\fP und \fIumask\fP für jeden Prozess Standardwerte festzulegen. .SH BEISPIELE Dies ist ein Beispiel, das auf Ihrem System als \fI/etc/initscript.sample\fP installiert werden könnte. .RS .sp .nf .ne 7 # # initscript Wird von init(8) für alle Programme, für die # ein Prozess erzeugt werden soll, wie folgt # ausgeführt: # # /bin/sh /etc/initscript # # Umask auf einen sicheren Wert setzen und Speicherauszüge # nach Abstürzen (Core\-Dumps) ermöglichen. umask 022 ulimit \-c 2097151 PATH=/bin:/sbin:/usr/bin:/usr/sbin export PATH # Erhöht die absolute Obergrenze (hard limit) für Datei\- # deskriptoren pro Prozess auf 8192. Die überschreitbare (weiche, # soft) Grenze ist immer noch 1024. Sie kann aber von jedem un\- # privilegierten Prozess mittels »ulimit \-Sn xxx« bis zur # Obergrenze heraufgesetzt werden. Dafür ist ein Kernel der # Version 2.2.13 oder höher erforderlich. ulimit\-Hn 8192 # das Programm ausführen eval exec "$4" .sp .RE .SH ANMERKUNGEN Dieses Skript ist nicht als Startup\-Skript für Daemonen oder Dienste gemeint. Es hat nichts mit einem Skript im \fIrc.local\fP\-Stil zu tun. Es ist nur ein Handler für aus \fB/etc/inittab\fP heraus ausgeführte Arbeiten. Das Experimentieren damit kann bewirken, dass Ihr System nicht (mehr neu) starten kann. .SH DATEIEN /etc/inittab, /etc/initscript .SH AUTOR .MT miquels@\:cistron\:.nl Miquel van Smoorenburg .ME .SH "SIEHE AUCH" \fBinittab\fP(5), \fBinit\fP(8)