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