source: appendixa/sysvinit-desc.xml@ e69a59f

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_0 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 e69a59f was e69a59f, checked in by Gerard Beekmans <gerard@…>, 22 years ago

various fixes

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

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