source: appendixa/sysvinit-desc.xml@ 793c2f7

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 v3_0 v3_1 v3_2 v3_3 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 793c2f7 was b822811, checked in by Mark Hymers <markh@…>, 23 years ago

XML changes

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

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