sysvinit.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-sysvinit" role="wrap">
  8. <?dbhtml filename="sysvinit.html"?>
  9. <sect1info condition="script">
  10. <productname>sysvinit</productname>
  11. <productnumber>&sysvinit-version;</productnumber>
  12. <address>&sysvinit-url;</address>
  13. </sect1info>
  14. <title>Sysvinit-&sysvinit-version;</title>
  15. <indexterm zone="ch-system-sysvinit">
  16. <primary sortas="a-Sysvinit">Sysvinit</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Sysvinit package contains programs for controlling the startup,
  21. running, and shutdown of the system.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&sysvinit-ch6-sbu;</seg>
  27. <seg>&sysvinit-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Sysvinit</title>
  33. <para>Since LFS uses Systemd as init system, this package
  34. is needed for few utils that are not present in other
  35. packages. Compile the package:</para>
  36. <screen><userinput remap="make">make -C src fstab-decode
  37. make -C src killall5
  38. make -C src last</userinput></screen>
  39. <para>This package does not come with a test suite.</para>
  40. <para>Install the package:</para>
  41. <screen><userinput remap="install">cp -v src/{fstab-decode,killall5} /sbin
  42. ln -sv ../sbin/killall5 /bin/pidof
  43. cp -v src/last /usr/bin
  44. ln -sv last /usr/bin/lastb</userinput></screen>
  45. <para>Install manual pages for the installed programs:</para>
  46. <screen><userinput remap="install">cp -v man/{last,lastb}.1 /usr/share/man/man1
  47. cp -v man/{fstab-decode,killall5,pidof}.8 /usr/share/man/man8</userinput></screen>
  48. </sect2>
  49. <sect2 id="contents-sysvinit" role="content">
  50. <title>Contents of Sysvinit</title>
  51. <segmentedlist>
  52. <segtitle>Installed programs</segtitle>
  53. <seglistitem>
  54. <seg>fstab-decode, killall5, last,
  55. lastb (link to last) and pidof
  56. (link to killall5)</seg>
  57. </seglistitem>
  58. </segmentedlist>
  59. <variablelist>
  60. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  61. <?dbfo list-presentation="list"?>
  62. <?dbhtml list-presentation="table"?>
  63. <varlistentry id="fstab-decode">
  64. <term><command>fstab-decode</command></term>
  65. <listitem>
  66. <para>Run a command with fstab-encoded arguments</para>
  67. <indexterm zone="ch-system-sysvinit fstab-decode">
  68. <primary sortas="b-fstab-decode">fstab-decode</primary>
  69. </indexterm>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="killall5">
  73. <term><command>killall5</command></term>
  74. <listitem>
  75. <para>Sends a signal to all processes, except the processes in its own
  76. session so it will not kill the shell running the script that called
  77. it</para>
  78. <indexterm zone="ch-system-sysvinit killall5">
  79. <primary sortas="b-killall5">killall5</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="last">
  84. <term><command>last</command></term>
  85. <listitem>
  86. <para>Shows which users last logged in (and out), searching back
  87. through the <filename>/var/log/wtmp</filename> file; it also shows
  88. system boots, shutdowns, and run-level changes</para>
  89. <indexterm zone="ch-system-sysvinit last">
  90. <primary sortas="b-last">last</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="lastb">
  95. <term><command>lastb</command></term>
  96. <listitem>
  97. <para>Shows the failed login attempts, as logged in
  98. <filename>/var/log/btmp</filename></para>
  99. <indexterm zone="ch-system-sysvinit lastb">
  100. <primary sortas="b-lastb">lastb</primary>
  101. </indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="pidof">
  105. <term><command>pidof</command></term>
  106. <listitem>
  107. <para>Reports the PIDs of the given programs</para>
  108. <indexterm zone="ch-system-sysvinit pidof">
  109. <primary sortas="b-pidof">pidof</primary>
  110. </indexterm>
  111. </listitem>
  112. </varlistentry>
  113. </variablelist>
  114. </sect2>
  115. </sect1>