2009-09-10 13:58:49 +05:30
|
|
|
'\" -*- coding: UTF-8 -*-
|
|
|
|
.\" Copyright (C) 1998-2004 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
|
2022-02-16 02:31:41 +05:30
|
|
|
.TH INIT 8 "29 Jul 2004" "sysvinit " "Linux System Administrator's Manual"
|
2009-09-10 13:58:49 +05:30
|
|
|
.\"}}}
|
|
|
|
.\"{{{ Name
|
|
|
|
.SH NAME
|
|
|
|
init, telinit \- process control initialization
|
|
|
|
.\"}}}
|
|
|
|
.\"{{{ Synopsis
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B /sbin/init
|
|
|
|
.RB [ " -a " ]
|
|
|
|
.RB [ " -s " ]
|
|
|
|
.RB [ " -b " ]
|
|
|
|
[ \fB\-z\fP \fIxxx\fP ]
|
|
|
|
.RB [ " 0123456Ss " ]
|
|
|
|
.br
|
2018-06-23 01:34:47 +05:30
|
|
|
.B /sbin/init
|
|
|
|
.RB [ " --version " ]
|
|
|
|
.br
|
2009-09-10 13:58:49 +05:30
|
|
|
.B /sbin/telinit
|
|
|
|
[ \fB\-t\fP \fISECONDS\fP ]
|
|
|
|
.RB [ " 0123456sSQqabcUu " ]
|
|
|
|
.br
|
|
|
|
.B /sbin/telinit
|
|
|
|
[ \fB\-e\fP \fIVAR\fP[\fB=\fP\fIVAL\fP] ]
|
|
|
|
.\"}}}
|
|
|
|
.\"{{{ Description
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.\"{{{ init
|
|
|
|
.SS Init
|
2021-12-28 01:44:42 +05:30
|
|
|
.B init
|
2009-09-10 13:58:49 +05:30
|
|
|
is the parent of all processes. Its primary role is to create processes
|
2021-12-28 01:44:42 +05:30
|
|
|
from a script stored in the file \fI/etc/inittab\fR (see
|
|
|
|
\fBinittab\fR(5)). This file usually has entries which cause \fBinit\fR
|
|
|
|
to spawn \fBgetty\fRs on each line that users can log in. It also
|
2009-09-10 13:58:49 +05:30
|
|
|
controls autonomous processes required by any particular system.
|
|
|
|
.PP
|
|
|
|
.\"{{{ Runlevels
|
|
|
|
.SH RUNLEVELS
|
2021-12-28 01:44:42 +05:30
|
|
|
A \fIrunlevel\fR is a software configuration of the system which allows
|
2009-09-10 13:58:49 +05:30
|
|
|
only a selected group of processes to exist. The processes spawned by
|
2021-12-28 01:44:42 +05:30
|
|
|
\fBinit\fR for each of these runlevels are defined in the
|
|
|
|
\fI/etc/inittab\fR file. \fBinit\fR can be in one of eight runlevels:
|
2018-02-21 04:56:09 +05:30
|
|
|
\fB0\(en6\fP and \fBS\fP (a.k.a. \fBs\fP). The runlevel is
|
2009-09-10 13:58:49 +05:30
|
|
|
changed by having a privileged user run \fBtelinit\fP, which sends
|
|
|
|
appropriate signals to \fBinit\fP, telling it which runlevel to change
|
|
|
|
to.
|
|
|
|
.PP
|
2018-02-21 04:56:09 +05:30
|
|
|
Runlevels \fBS\fP, \fB0\fP, \fB1\fP, and \fB6\fP are reserved.
|
|
|
|
Runlevel S is used to initialize the system on boot.
|
|
|
|
When starting runlevel S (on boot)
|
|
|
|
or runlevel 1 (switching from a multi-user runlevel)
|
|
|
|
the system is entering ``single-user mode'', after which the
|
|
|
|
current runlevel is S.
|
|
|
|
Runlevel 0 is used to halt the system;
|
|
|
|
runlevel 6 is used to reboot the system.
|
|
|
|
.PP
|
|
|
|
After booting through S the system automatically enters one of
|
|
|
|
the multi-user runlevels 2 through 5, unless there was some
|
|
|
|
problem that needs to be fixed by the administrator in
|
|
|
|
single-user mode.
|
|
|
|
Normally after entering single-user mode
|
|
|
|
the administrator performs maintenance and then reboots the system.
|
|
|
|
.PP
|
|
|
|
For more information,
|
2009-09-10 13:58:49 +05:30
|
|
|
see the manpages for \fBshutdown\fP(8) and \fBinittab\fP(5).
|
|
|
|
.PP
|
2018-02-21 04:56:09 +05:30
|
|
|
Runlevels 7-9 are also valid, though not really documented. This is
|
|
|
|
because "traditional" Unix variants don't use them.
|
|
|
|
.PP
|
|
|
|
Runlevels \fIS\fP and \fIs\fP are the same.
|
2009-09-10 13:58:49 +05:30
|
|
|
Internally they are aliases for the same runlevel.
|
|
|
|
.\"}}}
|
|
|
|
.PP
|
|
|
|
.SH BOOTING
|
|
|
|
After \fBinit\fP is invoked as the last step of the kernel boot sequence,
|
2021-12-28 01:44:42 +05:30
|
|
|
it looks for the file \fI/etc/inittab\fP to see if there is an entry of the
|
|
|
|
type \fBinitdefault\fP (see \fBinittab\fR(5)). The \fBinitdefault\fP entry
|
2009-09-10 13:58:49 +05:30
|
|
|
determines the initial runlevel of the system. If there is no such
|
2021-12-28 01:44:42 +05:30
|
|
|
entry (or no \fI/etc/inittab\fR at all), a runlevel must be
|
2009-09-10 13:58:49 +05:30
|
|
|
entered at the system console.
|
|
|
|
.PP
|
2018-02-21 04:56:09 +05:30
|
|
|
Runlevel \fBS\fP or \fBs\fP initialize the system
|
2021-12-28 01:44:42 +05:30
|
|
|
and do not require an \fI/etc/inittab\fP file.
|
2018-02-21 04:56:09 +05:30
|
|
|
.PP
|
2021-12-28 01:44:42 +05:30
|
|
|
In single user mode, \fB/sbin/sulogin\fP is invoked on \fI/dev/console\fP.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
|
|
|
When entering single user mode, \fBinit\fP initializes the consoles
|
|
|
|
\fBstty\fP settings to sane values. Clocal mode is set. Hardware
|
|
|
|
speed and handshaking are not changed.
|
|
|
|
.PP
|
|
|
|
When entering a multi-user mode for the first time, \fBinit\fP performs the
|
|
|
|
\fBboot\fP and \fBbootwait\fP entries to allow file systems to be
|
|
|
|
mounted before users can log in. Then all entries matching the runlevel
|
|
|
|
are processed.
|
|
|
|
.PP
|
|
|
|
When starting a new process, \fBinit\fP first checks whether the file
|
|
|
|
\fI/etc/initscript\fP exists. If it does, it uses this script to
|
|
|
|
start the process.
|
|
|
|
.PP
|
|
|
|
Each time a child terminates, \fBinit\fP records the fact and the reason
|
2021-12-28 01:44:42 +05:30
|
|
|
it died in \fI/var/run/utmp\fP and \fI/var/log/wtmp\fP,
|
2009-09-10 13:58:49 +05:30
|
|
|
provided that these files exist.
|
|
|
|
.SH CHANGING RUNLEVELS
|
|
|
|
After it has spawned all of the processes specified, \fBinit\fP waits
|
|
|
|
for one of its descendant processes to die, a powerfail signal, or until
|
2018-02-21 04:56:09 +05:30
|
|
|
it is signaled by \fBtelinit\fP to change the system's runlevel.
|
2009-09-10 13:58:49 +05:30
|
|
|
When one of the above three conditions occurs, it re-examines
|
2021-12-28 01:44:42 +05:30
|
|
|
the \fI/etc/inittab\fP file. New entries can be added to this file at
|
2009-09-10 13:58:49 +05:30
|
|
|
any time. However, \fBinit\fP still waits for one of the above three
|
|
|
|
conditions to occur. To provide for an instantaneous response, the
|
2018-02-21 04:53:48 +05:30
|
|
|
\fBtelinit Q\fP or \fBq\fP command can wake up \fBinit\fP to re-examine (reload) the
|
2021-12-28 01:44:42 +05:30
|
|
|
\fI/etc/inittab\fP file.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
|
|
|
If \fBinit\fP is not in single user mode and receives a powerfail
|
2021-12-28 01:44:42 +05:30
|
|
|
signal (SIGPWR), it reads the file \fI/etc/powerstatus\fP. It then starts
|
2009-09-10 13:58:49 +05:30
|
|
|
a command based on the contents of this file:
|
|
|
|
.IP F(AIL)
|
|
|
|
Power is failing, UPS is providing the power. Execute the \fBpowerwait\fP
|
|
|
|
and \fBpowerfail\fP entries.
|
|
|
|
.IP O(K)
|
|
|
|
The power has been restored, execute the \fBpowerokwait\fP entries.
|
|
|
|
.IP L(OW)
|
|
|
|
The power is failing and the UPS has a low battery. Execute the
|
|
|
|
\fBpowerfailnow\fP entries.
|
|
|
|
.PP
|
2021-12-28 01:44:42 +05:30
|
|
|
If \fI/etc/powerstatus\fR doesn't exist or contains anything else then the
|
|
|
|
letters \fBF\fP, \fBO\fP or \fBL\fP, \fBinit\fR will behave as if it has read
|
2009-09-10 13:58:49 +05:30
|
|
|
the letter \fBF\fP.
|
|
|
|
.PP
|
2021-12-28 01:44:42 +05:30
|
|
|
Usage of \fBSIGPWR\fP and \fI/etc/powerstatus\fP is discouraged. Someone
|
|
|
|
wanting to interact with \fBinit\fP should use the \fI/run/initctl\fP
|
|
|
|
control channel - see the \fBinitctl\fR(5) manual page for more documentation
|
2018-04-15 03:49:18 +05:30
|
|
|
about this.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
|
|
|
When \fBinit\fP is requested to change the runlevel, it sends the
|
2021-12-28 01:44:42 +05:30
|
|
|
warning signal \fBSIGTERM\fP to all processes that are undefined
|
2018-10-28 04:56:15 +05:30
|
|
|
in the new runlevel. It then waits 3 seconds before forcibly
|
2021-12-28 01:44:42 +05:30
|
|
|
terminating these processes via the \fBSIGKILL\fP signal.
|
2009-09-10 13:58:49 +05:30
|
|
|
Note that \fBinit\fP assumes that all these processes (and their
|
|
|
|
descendants) remain in the same process group which \fBinit\fP
|
|
|
|
originally created for them. If any process changes its process group
|
|
|
|
affiliation it will not receive these signals. Such processes need to
|
|
|
|
be terminated separately.
|
|
|
|
.\"}}}
|
|
|
|
.\"{{{ telinit
|
|
|
|
.SH TELINIT
|
|
|
|
\fB/sbin/telinit\fP is linked to \fB/sbin/init\fP. It takes a
|
|
|
|
one-character argument and signals \fBinit\fP to perform the appropriate
|
|
|
|
action. The following arguments serve as directives to
|
|
|
|
\fBtelinit\fP:
|
2021-12-28 01:44:42 +05:30
|
|
|
.IP "\fB0\fP, \fB1\fP, \fB2\fP, \fB3\fP, \fB4\fP, \fB5\fP or \fB6\fP"
|
2009-09-10 13:58:49 +05:30
|
|
|
tell \fBinit\fP to switch to the specified run level.
|
2021-12-28 01:44:42 +05:30
|
|
|
.IP \fBa\fP, \fBb\fP, \fBc\fP
|
2009-09-10 13:58:49 +05:30
|
|
|
tell \fBinit\fP to process only those \fB/etc/inittab\fP file
|
|
|
|
entries having runlevel \fBa\fP,\fBb\fP or \fBc\fP.
|
|
|
|
.IP "\fBQ\fP or \fBq\fP"
|
2021-12-28 01:44:42 +05:30
|
|
|
tell \fBinit\fP to re-examine the \fI/etc/inittab\fP file.
|
2009-09-10 13:58:49 +05:30
|
|
|
.IP "\fBS\fP or \fBs\fP"
|
|
|
|
tell \fBinit\fP to switch to single user mode.
|
|
|
|
.IP "\fBU\fP or \fBu\fP"
|
2018-02-21 04:56:09 +05:30
|
|
|
tell \fBinit\fP to re-execute itself (preserving the state). No re-examining of
|
2021-12-28 01:44:42 +05:30
|
|
|
\fI/etc/inittab\fP file happens. Runlevel should be one of
|
2018-02-21 04:56:09 +05:30
|
|
|
\fBSs0123456\fP
|
|
|
|
otherwise request would be silently ignored.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
|
|
|
\fBtelinit\fP can tell \fBinit\fP how long it should wait
|
2021-12-28 01:44:42 +05:30
|
|
|
between sending processes the \fBSIGTERM\fR and \fBSIGKILL\fR signals. The default
|
2018-10-23 06:14:39 +05:30
|
|
|
is 3 seconds, but this can be changed with the \fB-t\fP option.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
2018-02-21 04:56:09 +05:30
|
|
|
\fBtelinit -e\fP tells \fBinit\fP to change the environment
|
2009-09-10 13:58:49 +05:30
|
|
|
for processes it spawns.
|
2018-02-21 04:56:09 +05:30
|
|
|
The argument of \fB-e\fP is either of the form \fIVAR\fP=\fIVAL\fP
|
2009-09-10 13:58:49 +05:30
|
|
|
which sets variable \fIVAR\fP to value \fIVAL\fP,
|
|
|
|
or of the form \fIVAR\fP
|
|
|
|
(without an equality sign)
|
|
|
|
which unsets variable \fIVAR\fP.
|
|
|
|
.PP
|
|
|
|
\fBtelinit\fP can be invoked only by users with appropriate
|
|
|
|
privileges.
|
|
|
|
.PP
|
|
|
|
The \fBinit\fP binary checks if it is \fBinit\fP or \fBtelinit\fP by looking
|
|
|
|
at its \fIprocess id\fP; the real \fBinit\fP's process id is always \fB1\fP.
|
|
|
|
From this it follows that instead of calling \fBtelinit\fP one can also
|
|
|
|
just use \fBinit\fP instead as a shortcut.
|
|
|
|
.\"}}}
|
|
|
|
.\"}}}
|
|
|
|
.SH ENVIRONMENT
|
|
|
|
\fBInit\fP sets the following environment variables for all its children:
|
|
|
|
.IP \fBPATH\fP
|
|
|
|
\fI/bin:/usr/bin:/sbin:/usr/sbin\fP
|
|
|
|
.IP \fBINIT_VERSION\fP
|
|
|
|
As the name says. Useful to determine if a script runs directly from \fBinit\fP.
|
|
|
|
.IP \fBRUNLEVEL\fP
|
|
|
|
The current system runlevel.
|
|
|
|
.IP \fBPREVLEVEL\fP
|
|
|
|
The previous runlevel (useful after a runlevel switch).
|
|
|
|
.IP \fBCONSOLE\fP
|
|
|
|
The system console. This is really inherited from the kernel; however
|
2021-12-28 01:44:42 +05:30
|
|
|
if it is not set \fBinit\fP will set it to \fI/dev/console\fP by default.
|
2009-09-10 13:58:49 +05:30
|
|
|
.SH BOOTFLAGS
|
|
|
|
It is possible to pass a number of flags to \fBinit\fP from the
|
2021-12-28 01:44:42 +05:30
|
|
|
boot monitor (eg. LILO or GRUB). \fBinit\fP accepts the following flags:
|
2009-09-10 13:58:49 +05:30
|
|
|
.TP 0.5i
|
|
|
|
.B -s, S, single
|
2018-02-21 04:56:09 +05:30
|
|
|
Single user mode boot. In this mode \fI/etc/inittab\fP is
|
|
|
|
examined and the bootup rc scripts are usually run before
|
|
|
|
the single user mode shell is started.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
|
|
|
.TP 0.5i
|
2018-02-21 04:56:09 +05:30
|
|
|
.B 1-5
|
2009-09-10 13:58:49 +05:30
|
|
|
Runlevel to boot into.
|
|
|
|
.PP
|
|
|
|
.TP 0.5i
|
|
|
|
.B -b, emergency
|
|
|
|
Boot directly into a single user shell without running any
|
|
|
|
other startup scripts.
|
|
|
|
.PP
|
|
|
|
.TP 0.5i
|
|
|
|
.B -a, auto
|
|
|
|
The LILO boot loader adds the word "auto" to the command line if it
|
|
|
|
booted the kernel with the default command line (without user intervention).
|
|
|
|
If this is found \fBinit\fP sets the "AUTOBOOT" environment
|
2018-02-21 04:56:09 +05:30
|
|
|
variable to "yes". Note that you cannot use this for any security
|
2021-12-28 01:44:42 +05:30
|
|
|
measures - of course the user could specify "auto" or \fB-a\fR on the
|
2018-02-21 04:56:09 +05:30
|
|
|
command line manually.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
|
|
|
.TP 0.5i
|
2018-02-21 04:56:09 +05:30
|
|
|
.BI "-z " xxx
|
|
|
|
The argument to \fB-z\fP is ignored. You can use this to expand the command
|
2021-12-28 01:44:42 +05:30
|
|
|
line a bit, so that it takes some more space on the stack. \fBinit\fP
|
2018-02-21 04:56:09 +05:30
|
|
|
can then manipulate the command line so that \fBps\fP(1) shows
|
|
|
|
the current runlevel.
|
2009-09-10 13:58:49 +05:30
|
|
|
.PP
|
2018-06-23 01:34:47 +05:30
|
|
|
.TP 0.5i
|
2019-03-04 03:02:28 +05:30
|
|
|
.B \-\-version
|
2021-12-28 01:44:42 +05:30
|
|
|
This argument, when used on its own, displays the current version of \fBinit\fP
|
|
|
|
to the console/stdout. It is a quick way to determine which \fBinit\fP software and
|
|
|
|
version is being used. After the version information is displayed, \fBinit\fP
|
2018-07-02 03:21:31 +05:30
|
|
|
immediately exits with a return code of zero.
|
2018-06-23 01:34:47 +05:30
|
|
|
.PP
|
2009-09-10 13:58:49 +05:30
|
|
|
.SH INTERFACE
|
2021-12-28 01:44:42 +05:30
|
|
|
\fBinit\fP listens on a \fIfifo\fP in /dev, \fI/run/initctl\fP, for messages.
|
|
|
|
\fBTelinit\fP uses this to communicate with \fBinit\fP. The interface is not
|
2018-02-21 04:56:09 +05:30
|
|
|
very well documented or finished. Those interested should study the
|
|
|
|
\fIinitreq.h\fP file in the \fIsrc/\fP subdirectory of the \fBinit\fP
|
|
|
|
source code tar archive.
|
2009-09-10 13:58:49 +05:30
|
|
|
.SH SIGNALS
|
|
|
|
Init reacts to several signals:
|
|
|
|
.TP 0.5i
|
|
|
|
.B SIGHUP
|
|
|
|
Has the same effect as \fBtelinit q\fP.
|
|
|
|
.PP
|
|
|
|
.TP 0.5i
|
|
|
|
.B SIGUSR1
|
2021-12-28 01:44:42 +05:30
|
|
|
On receipt of this signals, \fBinit\fP closes and re-opens its control fifo,
|
|
|
|
\fB/run/initctl\fP. Useful for bootscripts when \fI/dev\fP is remounted.
|
2009-09-10 13:58:49 +05:30
|
|
|
.TP 0.5i
|
2018-04-18 04:14:50 +05:30
|
|
|
.B SIGUSR2
|
2021-12-28 01:44:42 +05:30
|
|
|
When \fBinit\fP receives \fBSIGUSR2\fR, \fBinit\fP closes and leaves the control fifo,
|
|
|
|
\fB/run/initctl\fP, closed. This may be used to make sure \fBinit\fP is not
|
|
|
|
holding open any files. However, it also prevents \fBinit\fP from switching
|
2018-04-18 04:14:50 +05:30
|
|
|
runlevels. Which means commands like shutdown no longer work.
|
2021-12-28 01:44:42 +05:30
|
|
|
The fifo can be re-opened by sending \fBinit\fP the \fBSIGUSR1\fR signal.
|
2018-04-18 04:14:50 +05:30
|
|
|
.TP 0.5i
|
2009-09-10 13:58:49 +05:30
|
|
|
.B SIGINT
|
2021-12-28 01:44:42 +05:30
|
|
|
Normally the kernel sends this signal to \fBinit\fP when CTRL-ALT-DEL is
|
2009-09-10 13:58:49 +05:30
|
|
|
pressed. It activates the \fIctrlaltdel\fP action.
|
|
|
|
.TP 0.5i
|
|
|
|
.B SIGWINCH
|
|
|
|
The kernel sends this signal when the \fIKeyboardSignal\fP key is hit.
|
|
|
|
It activates the \fIkbrequest\fP action.
|
|
|
|
\"{{{ Conforming to
|
|
|
|
.SH CONFORMING TO
|
2021-12-28 01:44:42 +05:30
|
|
|
\fBinit\fP is compatible with the System V init. It works closely
|
2009-09-10 13:58:49 +05:30
|
|
|
together with the scripts in the directories
|
|
|
|
\fI/etc/init.d\fP and \fI/etc/rc{runlevel}.d\fP.
|
|
|
|
If your system uses this convention, there should be a \fIREADME\fP
|
|
|
|
file in the directory \fI/etc/init.d\fP explaining how these scripts work.
|
|
|
|
.\"}}}
|
|
|
|
.\"{{{ Files
|
|
|
|
.SH FILES
|
|
|
|
.nf
|
|
|
|
/etc/inittab
|
|
|
|
/etc/initscript
|
|
|
|
/dev/console
|
|
|
|
/var/run/utmp
|
|
|
|
/var/log/wtmp
|
2018-02-21 04:56:09 +05:30
|
|
|
/run/initctl
|
2009-09-10 13:58:49 +05:30
|
|
|
.fi
|
|
|
|
.\"}}}
|
|
|
|
.\"{{{ Warnings
|
|
|
|
.SH WARNINGS
|
2021-12-28 01:44:42 +05:30
|
|
|
\fBinit\fP assumes that processes and descendants of processes
|
2009-09-10 13:58:49 +05:30
|
|
|
remain in the same process group which was originally created
|
|
|
|
for them. If the processes change their group, \fBinit\fP can't
|
|
|
|
kill them and you may end up with two processes reading from one
|
|
|
|
terminal line.
|
2018-02-21 04:56:09 +05:30
|
|
|
.PP
|
|
|
|
On a Debian system, entering runlevel 1 causes all processes
|
|
|
|
to be killed except for kernel threads and the script that does
|
|
|
|
the killing and other processes in its session.
|
|
|
|
As a consequence of this, it isn't safe to return from runlevel 1
|
|
|
|
to a multi-user runlevel: daemons that were started in runlevel S
|
|
|
|
and are needed for normal operation are no longer running.
|
|
|
|
The system should be rebooted.
|
2009-09-10 13:58:49 +05:30
|
|
|
.\"}}}
|
|
|
|
.\"{{{ Diagnostics
|
|
|
|
.SH DIAGNOSTICS
|
|
|
|
If \fBinit\fP finds that it is continuously respawning an entry
|
|
|
|
more than 10 times in 2 minutes, it will assume that there is an error
|
|
|
|
in the command string, generate an error message on the system console,
|
|
|
|
and refuse to respawn this entry until either 5 minutes has elapsed or
|
|
|
|
it receives a signal. This prevents it from eating up system resources
|
2021-12-28 01:44:42 +05:30
|
|
|
when someone makes a typographical error in the \fI/etc/inittab\fP file
|
2009-09-10 13:58:49 +05:30
|
|
|
or the program for the entry is removed.
|
|
|
|
.\"}}}
|
|
|
|
.\"{{{ Author
|
|
|
|
.SH AUTHOR
|
2021-12-28 01:44:42 +05:30
|
|
|
.MT miquels@\:cistron\:.nl
|
|
|
|
Miquel van Smoorenburg
|
|
|
|
.ME , initial manual page by
|
|
|
|
.MT u31b3hs@\:pool\:.informatik\:.rwth-aachen\:.de
|
|
|
|
Michael Haardt
|
|
|
|
.ME .
|
2009-09-10 13:58:49 +05:30
|
|
|
.\"}}}
|
|
|
|
.\"{{{ See also
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR getty (1),
|
|
|
|
.BR login (1),
|
|
|
|
.BR sh (1),
|
|
|
|
.BR runlevel (8),
|
2019-03-04 03:02:28 +05:30
|
|
|
.BR shutdown (8),
|
2009-09-10 13:58:49 +05:30
|
|
|
.BR kill (1),
|
2018-04-15 03:49:18 +05:30
|
|
|
.BR initctl (5),
|
2009-09-10 13:58:49 +05:30
|
|
|
.BR inittab (5),
|
|
|
|
.BR initscript (5),
|
|
|
|
.BR utmp (5)
|
|
|
|
.\"}}}
|