sysvinit-desc.xml 3.4 KB

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