[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>
|
---|
[2791a8e] | 99 | <seg>fuser, killall, oldfuser, peekfd, pstree, and pstree.x11
|
---|
| 100 | (link to pstree)</seg>
|
---|
[3f3931b0] | 101 | </seglistitem>
|
---|
| 102 | </segmentedlist>
|
---|
| 103 |
|
---|
| 104 | <variablelist>
|
---|
| 105 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 106 | <?dbfo list-presentation="list"?>
|
---|
| 107 | <?dbhtml list-presentation="table"?>
|
---|
| 108 |
|
---|
| 109 | <varlistentry id="fuser">
|
---|
| 110 | <term><command>fuser</command></term>
|
---|
| 111 | <listitem>
|
---|
| 112 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
| 113 | files or file systems</para>
|
---|
| 114 | <indexterm zone="ch-system-psmisc fuser">
|
---|
| 115 | <primary sortas="b-fuser">fuser</primary>
|
---|
| 116 | </indexterm>
|
---|
| 117 | </listitem>
|
---|
| 118 | </varlistentry>
|
---|
| 119 |
|
---|
| 120 | <varlistentry id="killall">
|
---|
| 121 | <term><command>killall</command></term>
|
---|
| 122 | <listitem>
|
---|
| 123 | <para>Kills processes by name; it sends a signal to all processes
|
---|
| 124 | running any of the given commands</para>
|
---|
| 125 | <indexterm zone="ch-system-psmisc killall">
|
---|
| 126 | <primary sortas="b-killall">killall</primary>
|
---|
| 127 | </indexterm>
|
---|
| 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
| 131 | <varlistentry id="oldfuser">
|
---|
| 132 | <term><command>oldfuser</command></term>
|
---|
| 133 | <listitem>
|
---|
| 134 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
| 135 | files or file systems</para>
|
---|
| 136 | <indexterm zone="ch-system-psmisc oldfuser">
|
---|
| 137 | <primary sortas="b-oldfuser">oldfuser</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 | </listitem>
|
---|
| 140 | </varlistentry>
|
---|
| 141 |
|
---|
[2791a8e] | 142 | <varlistentry id="peekfd">
|
---|
| 143 | <term><command>peekfd</command></term>
|
---|
| 144 | <listitem>
|
---|
| 145 | <para>Peek at file descriptors of a running process, given its
|
---|
| 146 | PID</para>
|
---|
| 147 | <indexterm zone="ch-system-psmisc peekfd">
|
---|
| 148 | <primary sortas="b-peekfd">peekfd</primary>
|
---|
| 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
[3f3931b0] | 153 | <varlistentry id="pstree">
|
---|
| 154 | <term><command>pstree</command></term>
|
---|
| 155 | <listitem>
|
---|
| 156 | <para>Displays running processes as a tree</para>
|
---|
| 157 | <indexterm zone="ch-system-psmisc pstree">
|
---|
| 158 | <primary sortas="b-pstree">pstree</primary>
|
---|
| 159 | </indexterm>
|
---|
| 160 | </listitem>
|
---|
| 161 | </varlistentry>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="pstree.x11">
|
---|
| 164 | <term><command>pstree.x11</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>Same as <command>pstree</command>, except that it waits for
|
---|
| 167 | confirmation before exiting</para>
|
---|
| 168 | <indexterm zone="ch-system-psmisc pstree.x11">
|
---|
| 169 | <primary sortas="b-pstree.x11">pstree.x11</primary>
|
---|
| 170 | </indexterm>
|
---|
| 171 | </listitem>
|
---|
| 172 | </varlistentry>
|
---|
| 173 |
|
---|
| 174 | </variablelist>
|
---|
| 175 |
|
---|
| 176 | </sect2>
|
---|
[673b0d8] | 177 |
|
---|
| 178 | </sect1>
|
---|