psmisc.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-psmisc" xreflabel="Psmisc" role="wrap">
  7. <title>Psmisc-&psmisc-version;</title>
  8. <?dbhtml filename="psmisc.html"?>
  9. <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Psmisc package contains programs for displaying information on
  12. processes.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>Psmisc installation depends on</segtitle>
  20. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  21. GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Psmisc</title>
  26. <para>Prepare Psmisc for compilation:</para>
  27. <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
  28. <para>The meaning of the configure option:</para>
  29. <variablelist>
  30. <varlistentry>
  31. <term><parameter>--exec-prefix=""</parameter></term>
  32. <listitem><para>This causes the
  33. binaries to be installed in <filename class="directory">/bin</filename> instead of
  34. <filename class="directory">/usr/bin</filename>. As the Psmisc programs are often used in
  35. bootscripts, they should be available also when the <filename class="directory">/usr</filename>
  36. file system isn't mounted.</para></listitem>
  37. </varlistentry>
  38. </variablelist>
  39. <para>Compile the package:</para>
  40. <screen><userinput>make</userinput></screen>
  41. <para>Now install it:</para>
  42. <screen><userinput>make install</userinput></screen>
  43. <para>There is no reason for the <command>pstree</command> and
  44. <command>pstree.x11</command> programs to reside in
  45. <filename class="directory">/bin</filename>. We therefore move them to
  46. <filename class="directory">/usr/bin</filename>. Also, there is no need
  47. for <command>pstree.x11</command> to exist as a separate program. We
  48. therefore make it a symbolic link to <command>pstree</command>:</para>
  49. <screen><userinput>mv /bin/pstree* /usr/bin
  50. ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
  51. <para>By default Psmisc's <command>pidof</command> program isn't installed.
  52. Generally, this isn't a problem because we later install the Sysvinit package,
  53. which provides a better <command>pidof</command> program. But if you're not
  54. going to use Sysvinit, you should complete the installation of Psmisc by
  55. creating the 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><title>Short descriptions</title>
  64. <varlistentry id="fuser">
  65. <term><command>fuser</command></term>
  66. <listitem>
  67. <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
  68. <para>reports the PIDs of processes that use the given files or file systems.</para>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry id="killall">
  72. <term><command>killall</command></term>
  73. <listitem>
  74. <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
  75. <para>kills processes by name. It sends a signal
  76. to all processes running any of the given commands.</para>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="pstree">
  80. <term><command>pstree</command></term>
  81. <listitem>
  82. <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
  83. <para>displays running processes as a tree.</para>
  84. </listitem>
  85. </varlistentry>
  86. <varlistentry id="pstree.x11">
  87. <term><command>pstree.x11</command></term>
  88. <listitem>
  89. <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
  90. <para>same as pstree except that it waits for confirmation before exiting.</para>
  91. </listitem>
  92. </varlistentry>
  93. </variablelist>
  94. </sect2>
  95. </sect1>