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