sysvinit-desc.xml 3.5 KB

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