psmisc.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-psmisc" role="wrap">
  9. <title>Psmisc-&psmisc-version;</title>
  10. <?dbhtml filename="psmisc.html"?>
  11. <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Psmisc package contains programs for displaying information about
  14. running processes.</para>
  15. <segmentedlist>
  16. <segtitle>&buildtime;</segtitle>
  17. <segtitle>&diskspace;</segtitle>
  18. <seglistitem><seg>0.1 SBU</seg><seg>1.7 MB</seg></seglistitem>
  19. </segmentedlist>
  20. <segmentedlist>
  21. <segtitle>&dependencies;</segtitle>
  22. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  23. GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Psmisc</title>
  28. <para>Prepare Psmisc for compilation:</para>
  29. <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
  30. <para>The meaning of the configure options:</para>
  31. <variablelist>
  32. <varlistentry>
  33. <term><parameter>--exec-prefix=""</parameter></term>
  34. <listitem><para>This ensures that the Psmisc binaries will install into
  35. <filename class="directory">/bin</filename> instead of <filename
  36. class="directory">/usr/bin</filename>. This is the correct location according to
  37. the FHS, because some of the Psmisc binaries are used by the LFS-Bootscripts
  38. package.</para></listitem>
  39. </varlistentry>
  40. </variablelist>
  41. <para>Compile the package:</para>
  42. <screen><userinput>make</userinput></screen>
  43. <para>Install the package:</para>
  44. <screen><userinput>make install</userinput></screen>
  45. <para>There is no reason for the <command>pstree</command> and
  46. <command>pstree.x11</command> programs to reside in <filename
  47. class="directory">/bin</filename>. Therefore, move them to <filename
  48. class="directory">/usr/bin</filename>:</para>
  49. <screen><userinput>mv /bin/pstree* /usr/bin</userinput></screen>
  50. <para>By default, Psmisc's <command>pidof</command> program is not
  51. installed. This usually is not a problem because it is installed later
  52. in the Sysvinit package, which provides a better
  53. <command>pidof</command> program. If Sysvinit will not be used for a
  54. particular system, complete the installation of Psmisc by creating the
  55. following symlink:</para>
  56. <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
  57. </sect2>
  58. <sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
  59. <segmentedlist>
  60. <segtitle>Installed programs</segtitle>
  61. <seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>
  62. </segmentedlist>
  63. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  64. <?dbfo list-presentation="list"?>
  65. <?dbhtml list-presentation="table"?>
  66. <varlistentry id="fuser">
  67. <term><command>fuser</command></term>
  68. <listitem>
  69. <para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para>
  70. <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="killall">
  74. <term><command>killall</command></term>
  75. <listitem>
  76. <para>Kills processes by name; it sends a signal to all processes
  77. running any of the given commands</para>
  78. <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="pstree">
  82. <term><command>pstree</command></term>
  83. <listitem>
  84. <para>Displays running processes as a tree</para>
  85. <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="pstree.x11">
  89. <term><command>pstree.x11</command></term>
  90. <listitem>
  91. <para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para>
  92. <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
  93. </listitem>
  94. </varlistentry>
  95. </variablelist>
  96. </sect2>
  97. </sect1>