[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[3f3931b0] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-psmisc" role="wrap">
|
---|
[3f3931b0] | 9 | <?dbhtml filename="psmisc.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>psmisc</productname>
|
---|
| 13 | <productnumber>&psmisc-version;</productnumber>
|
---|
| 14 | <address>&psmisc-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[3f3931b0] | 17 | <title>Psmisc-&psmisc-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-psmisc">
|
---|
| 20 | <primary sortas="a-Psmisc">Psmisc</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[673b0d8] | 25 |
|
---|
[3f3931b0] | 26 | <para>The Psmisc package contains programs for displaying information about
|
---|
| 27 | running processes.</para>
|
---|
[6370fa6] | 28 |
|
---|
[3f3931b0] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 32 |
|
---|
[3f3931b0] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&psmisc-ch6-sbu;</seg>
|
---|
| 35 | <seg>&psmisc-ch6-du;</seg>
|
---|
[3f3931b0] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[673b0d8] | 38 |
|
---|
[3f3931b0] | 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Psmisc</title>
|
---|
| 43 |
|
---|
| 44 | <para>Prepare Psmisc for compilation:</para>
|
---|
[73aedd1d] | 45 |
|
---|
[0445a3d] | 46 | <screen><userinput remap="configure">./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
[73aedd1d] | 47 |
|
---|
[3f3931b0] | 48 | <variablelist>
|
---|
| 49 | <title>The meaning of the configure options:</title>
|
---|
[81fd230] | 50 |
|
---|
[3f3931b0] | 51 | <varlistentry>
|
---|
| 52 | <term><parameter>--exec-prefix=""</parameter></term>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>This ensures that the Psmisc binaries will install into
|
---|
| 55 | <filename class="directory">/bin</filename> instead of <filename
|
---|
| 56 | class="directory">/usr/bin</filename>. This is the correct location
|
---|
| 57 | according to the FHS, because some of the Psmisc binaries are used
|
---|
| 58 | by the LFS-Bootscripts package.</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </varlistentry>
|
---|
[81fd230] | 61 |
|
---|
[3f3931b0] | 62 | </variablelist>
|
---|
| 63 |
|
---|
| 64 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 65 |
|
---|
[0445a3d] | 66 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 67 |
|
---|
[3f3931b0] | 68 | <para>This package does not come with a test suite.</para>
|
---|
[0be3d41] | 69 |
|
---|
[3f3931b0] | 70 | <para>Install the package:</para>
|
---|
[73aedd1d] | 71 |
|
---|
[0445a3d] | 72 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 73 |
|
---|
[3f3931b0] | 74 | <para>There is no reason for the <command>pstree</command> and
|
---|
| 75 | <command>pstree.x11</command> programs to reside in <filename
|
---|
| 76 | class="directory">/bin</filename>. Therefore, move them to <filename
|
---|
| 77 | class="directory">/usr/bin</filename>:</para>
|
---|
[10e1008] | 78 |
|
---|
[0445a3d] | 79 | <screen><userinput remap="install">mv -v /bin/pstree* /usr/bin</userinput></screen>
|
---|
[10e1008] | 80 |
|
---|
[3f3931b0] | 81 | <para>By default, Psmisc's <command>pidof</command> program is not
|
---|
| 82 | installed. This usually is not a problem because it is installed later
|
---|
| 83 | in the Sysvinit package, which provides a better
|
---|
| 84 | <command>pidof</command> program. If Sysvinit will not be used for a
|
---|
| 85 | particular system, complete the installation of Psmisc by creating the
|
---|
| 86 | following symlink:</para>
|
---|
[73aedd1d] | 87 |
|
---|
[0445a3d] | 88 | <screen><userinput remap="install">ln -sv killall /bin/pidof</userinput></screen>
|
---|
[73aedd1d] | 89 |
|
---|
[3f3931b0] | 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 id="contents-psmisc" role="content">
|
---|
| 93 | <title>Contents of Psmisc</title>
|
---|
| 94 |
|
---|
| 95 | <segmentedlist>
|
---|
| 96 | <segtitle>Installed programs</segtitle>
|
---|
| 97 |
|
---|
| 98 | <seglistitem>
|
---|
[8f85d251] | 99 | <seg>fuser, killall, peekfd, pstree, and pstree.x11 (link to pstree)</seg>
|
---|
[3f3931b0] | 100 | </seglistitem>
|
---|
| 101 | </segmentedlist>
|
---|
| 102 |
|
---|
| 103 | <variablelist>
|
---|
| 104 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 105 | <?dbfo list-presentation="list"?>
|
---|
| 106 | <?dbhtml list-presentation="table"?>
|
---|
| 107 |
|
---|
| 108 | <varlistentry id="fuser">
|
---|
| 109 | <term><command>fuser</command></term>
|
---|
| 110 | <listitem>
|
---|
| 111 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
| 112 | files or file systems</para>
|
---|
| 113 | <indexterm zone="ch-system-psmisc fuser">
|
---|
| 114 | <primary sortas="b-fuser">fuser</primary>
|
---|
| 115 | </indexterm>
|
---|
| 116 | </listitem>
|
---|
| 117 | </varlistentry>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="killall">
|
---|
| 120 | <term><command>killall</command></term>
|
---|
| 121 | <listitem>
|
---|
| 122 | <para>Kills processes by name; it sends a signal to all processes
|
---|
| 123 | running any of the given commands</para>
|
---|
| 124 | <indexterm zone="ch-system-psmisc killall">
|
---|
| 125 | <primary sortas="b-killall">killall</primary>
|
---|
| 126 | </indexterm>
|
---|
| 127 | </listitem>
|
---|
| 128 | </varlistentry>
|
---|
| 129 |
|
---|
[2791a8e] | 130 | <varlistentry id="peekfd">
|
---|
| 131 | <term><command>peekfd</command></term>
|
---|
| 132 | <listitem>
|
---|
| 133 | <para>Peek at file descriptors of a running process, given its
|
---|
| 134 | PID</para>
|
---|
| 135 | <indexterm zone="ch-system-psmisc peekfd">
|
---|
| 136 | <primary sortas="b-peekfd">peekfd</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
[3f3931b0] | 141 | <varlistentry id="pstree">
|
---|
| 142 | <term><command>pstree</command></term>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>Displays running processes as a tree</para>
|
---|
| 145 | <indexterm zone="ch-system-psmisc pstree">
|
---|
| 146 | <primary sortas="b-pstree">pstree</primary>
|
---|
| 147 | </indexterm>
|
---|
| 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="pstree.x11">
|
---|
| 152 | <term><command>pstree.x11</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>Same as <command>pstree</command>, except that it waits for
|
---|
| 155 | confirmation before exiting</para>
|
---|
| 156 | <indexterm zone="ch-system-psmisc pstree.x11">
|
---|
| 157 | <primary sortas="b-pstree.x11">pstree.x11</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 | </listitem>
|
---|
| 160 | </varlistentry>
|
---|
| 161 |
|
---|
| 162 | </variablelist>
|
---|
| 163 |
|
---|
| 164 | </sect2>
|
---|
[673b0d8] | 165 |
|
---|
| 166 | </sect1>
|
---|