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