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