2002-06-04 12:30:14 +01:00
|
|
|
<sect2><title>Contents of Sysvinit</title>
|
|
|
|
|
|
|
|
<para>Last checked against version &sysvinit-contversion;.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect3><title>Program Files</title>
|
|
|
|
<para>halt, init, killall5, last, lastb (link to last), mesg, pidof
|
|
|
|
(link to killall5), poweroff (link to halt), reboot (link to halt),
|
|
|
|
runlevel, shutdown, sulogin, telinit (link to init), utmpdump and
|
|
|
|
wall</para></sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect3><title>Descriptions</title>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>halt</title>
|
2002-10-06 16:50:25 +01:00
|
|
|
<para>halt notes, in the file /var/log/wtmp, that the system is being
|
|
|
|
brought down and then tells the kernel to either halt, reboot or
|
2001-01-24 00:31:17 +00:00
|
|
|
poweroff the system. If halt or reboot is called when the system is not
|
2001-07-22 20:45:10 +01:00
|
|
|
in runlevel 0 or 6, shutdown will be invoked instead (with
|
2002-02-06 23:15:46 +00:00
|
|
|
the flag -h or -r).</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>init</title>
|
|
|
|
<para>init is the parent of all processes. Its primary role is to create
|
2002-09-28 22:08:29 +01:00
|
|
|
processes from a script stored in the file /etc/inittab. This
|
2002-10-06 16:50:25 +01:00
|
|
|
file usually has entries which cause init to spawn gettys on each line from
|
|
|
|
which users can log in. It also controls autonomous processes required by any
|
2002-02-06 23:15:46 +00:00
|
|
|
particular system.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>killall5</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>killall5 is the SystemV killall command. It sends a signal to all
|
2001-01-24 00:31:17 +00:00
|
|
|
processes except the processes in its own session, so it won't kill the
|
2002-02-06 23:15:46 +00:00
|
|
|
shell that is running the script it was called from.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>last</title>
|
2001-09-22 17:09:47 +01:00
|
|
|
<para>last searches back through the file /var/log/wtmp (or the file designated
|
2002-09-28 22:08:29 +01:00
|
|
|
by the -f flag) and displays a list of all users logged in (and out)
|
2002-02-06 23:15:46 +00:00
|
|
|
since that file was created.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>lastb</title>
|
2001-09-22 17:09:47 +01:00
|
|
|
<para>lastb is the same as last, except that by default it shows a log of the
|
2002-02-06 23:15:46 +00:00
|
|
|
file /var/log/btmp, which contains all the bad login attempts.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>mesg</title>
|
2002-05-23 18:00:34 +01:00
|
|
|
<para>mesg controls the access to the user's terminal by others. It's typically
|
2002-02-06 23:15:46 +00:00
|
|
|
used to allow or disallow other users to write to his terminal.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>pidof</title>
|
2002-05-30 00:13:57 +01:00
|
|
|
<para>pidof displays the process identifiers (PIDs) of the named
|
|
|
|
programs.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>poweroff</title>
|
2001-09-22 17:09:47 +01:00
|
|
|
<para>poweroff is equivalent to shutdown -h -p now. It halts the computer and
|
|
|
|
switches off the computer (when using an APM compliant BIOS and APM is
|
2002-02-06 23:15:46 +00:00
|
|
|
enabled in the kernel).</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>reboot</title>
|
2001-09-22 17:09:47 +01:00
|
|
|
<para>reboot is equivalent to shutdown -r now. It reboots
|
2002-02-06 23:15:46 +00:00
|
|
|
the computer.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>runlevel</title>
|
2002-10-06 16:50:25 +01:00
|
|
|
<para>runlevel reads the system utmp file (usually /var/run/utmp), locates
|
|
|
|
the runlevel record and prints the previous and current system
|
2002-09-28 22:08:29 +01:00
|
|
|
runlevel on its standard output, separated by a single space.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>shutdown</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>shutdown brings the system down in a secure way. All logged-in users are
|
2002-10-06 16:50:25 +01:00
|
|
|
notified that the system is going down and login is blocked.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>sulogin</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>sulogin is invoked by init when the system goes into single user mode
|
2001-01-24 00:31:17 +00:00
|
|
|
(this is done through an entry in /etc/inittab). Init also tries to
|
2001-07-22 20:45:10 +01:00
|
|
|
execute sulogin when it is passed the -b flag from the boot loader
|
2002-06-03 12:27:19 +01:00
|
|
|
(LILO, for example).</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>telinit</title>
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>telinit sends appropriate signals to init, telling it which runlevel to
|
2002-10-06 16:50:25 +01:00
|
|
|
enter.</para></sect4>
|
2001-09-22 17:09:47 +01:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
<sect4><title>utmpdump</title>
|
2001-09-22 17:09:47 +01:00
|
|
|
<para>utmpdumps prints the content of a file (usually /var/run/utmp) on
|
2002-02-06 23:15:46 +00:00
|
|
|
standard output in a user friendly format.</para></sect4>
|
|
|
|
|
|
|
|
<sect4><title>wall</title>
|
2002-10-06 16:50:25 +01:00
|
|
|
<para>wall sends a message to logged in users that have their mesg permission
|
2002-02-06 23:15:46 +00:00
|
|
|
set to yes.</para></sect4>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-02-06 23:15:46 +00:00
|
|
|
</sect3>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|