source: appendixa/sysvinit-desc.xml@ 8836e60

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v4_1 v5_0 v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 8836e60 was 6a9875d, checked in by Timothy Bauscher <timothy@…>, 22 years ago

Applied Bill Maltby's grammatic-fixes patch.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2164 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[8fcc2c0]1<sect2><title>Contents of Sysvinit</title>
2
3<para>Last checked against version &sysvinit-contversion;.</para>
[6370fa6]4
[bdc08c1]5<sect3><title>Program Files</title>
6<para>halt, init, killall5, last, lastb (link to last), mesg, pidof
7(link to killall5), poweroff (link to halt), reboot (link to halt),
8runlevel, shutdown, sulogin, telinit (link to init), utmpdump and
9wall</para></sect3>
[6370fa6]10
[bdc08c1]11<sect3><title>Descriptions</title>
[6370fa6]12
[bdc08c1]13<sect4><title>halt</title>
[6a9875d]14<para>halt notes, in the file /var/log/wtmp, that the system is being
15brought down and then tells the kernel to either halt, reboot or
[6370fa6]16poweroff the system. If halt or reboot is called when the system is not
[b822811]17in runlevel 0 or 6, shutdown will be invoked instead (with
[bdc08c1]18the flag -h or -r).</para></sect4>
[6370fa6]19
[bdc08c1]20<sect4><title>init</title>
21<para>init is the parent of all processes. Its primary role is to create
[2c094d6]22processes from a script stored in the file /etc/inittab. This
[6a9875d]23file usually has entries which cause init to spawn gettys on each line from
24which users can log in. It also controls autonomous processes required by any
[bdc08c1]25particular system.</para></sect4>
[6370fa6]26
[bdc08c1]27<sect4><title>killall5</title>
[b822811]28<para>killall5 is the SystemV killall command. It sends a signal to all
[6370fa6]29processes except the processes in its own session, so it won't kill the
[bdc08c1]30shell that is running the script it was called from.</para></sect4>
[6370fa6]31
[bdc08c1]32<sect4><title>last</title>
[53ad30a]33<para>last searches back through the file /var/log/wtmp (or the file designated
[2c094d6]34by the -f flag) and displays a list of all users logged in (and out)
[bdc08c1]35since that file was created.</para></sect4>
[6370fa6]36
[bdc08c1]37<sect4><title>lastb</title>
[53ad30a]38<para>lastb is the same as last, except that by default it shows a log of the
[bdc08c1]39file /var/log/btmp, which contains all the bad login attempts.</para></sect4>
[6370fa6]40
[bdc08c1]41<sect4><title>mesg</title>
[cf24ff1]42<para>mesg controls the access to the user's terminal by others. It's typically
[bdc08c1]43used to allow or disallow other users to write to his terminal.</para></sect4>
[6370fa6]44
[bdc08c1]45<sect4><title>pidof</title>
[159c2d2]46<para>pidof displays the process identifiers (PIDs) of the named
47programs.</para></sect4>
[6370fa6]48
[bdc08c1]49<sect4><title>poweroff</title>
[53ad30a]50<para>poweroff is equivalent to shutdown -h -p now. It halts the computer and
51switches off the computer (when using an APM compliant BIOS and APM is
[bdc08c1]52enabled in the kernel).</para></sect4>
[6370fa6]53
[bdc08c1]54<sect4><title>reboot</title>
[53ad30a]55<para>reboot is equivalent to shutdown -r now. It reboots
[bdc08c1]56the computer.</para></sect4>
[6370fa6]57
[bdc08c1]58<sect4><title>runlevel</title>
[6a9875d]59<para>runlevel reads the system utmp file (usually /var/run/utmp), locates
60the runlevel record and prints the previous and current system
[2c094d6]61runlevel on its standard output, separated by a single space.</para></sect4>
[6370fa6]62
[bdc08c1]63<sect4><title>shutdown</title>
[b822811]64<para>shutdown brings the system down in a secure way. All logged-in users are
[6a9875d]65notified that the system is going down and login is blocked.</para></sect4>
[6370fa6]66
[bdc08c1]67<sect4><title>sulogin</title>
[b822811]68<para>sulogin is invoked by init when the system goes into single user mode
[6370fa6]69(this is done through an entry in /etc/inittab). Init also tries to
[b822811]70execute sulogin when it is passed the -b flag from the boot loader
[a2cd10f]71(LILO, for example).</para></sect4>
[6370fa6]72
[bdc08c1]73<sect4><title>telinit</title>
[b822811]74<para>telinit sends appropriate signals to init, telling it which runlevel to
[6a9875d]75enter.</para></sect4>
[53ad30a]76
[bdc08c1]77<sect4><title>utmpdump</title>
[53ad30a]78<para>utmpdumps prints the content of a file (usually /var/run/utmp) on
[bdc08c1]79standard output in a user friendly format.</para></sect4>
80
81<sect4><title>wall</title>
[6a9875d]82<para>wall sends a message to logged in users that have their mesg permission
[bdc08c1]83set to yes.</para></sect4>
[6370fa6]84
[bdc08c1]85</sect3>
[6370fa6]86
87</sect2>
88
Note: See TracBrowser for help on using the repository browser.