[673b0d8] | 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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-psmisc" xreflabel="Psmisc" role="wrap">
|
---|
[673b0d8] | 7 | <title>Psmisc-&psmisc-version;</title>
|
---|
| 8 | <?dbhtml filename="psmisc.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Psmisc package contains programs for displaying information on
|
---|
| 14 | processes.</para>
|
---|
| 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
| 19 | <seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem>
|
---|
| 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[a001133] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>Psmisc installation depends on</segtitle>
|
---|
| 24 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 25 | GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
| 27 | </sect2>
|
---|
[3554fa3a] | 28 |
|
---|
[a001133] | 29 | <sect2 role="installation">
|
---|
[73aedd1d] | 30 | <title>Installation of Psmisc</title>
|
---|
| 31 |
|
---|
| 32 | <para>Prepare Psmisc for compilation:</para>
|
---|
| 33 |
|
---|
[9dfc02f] | 34 | <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
[73aedd1d] | 35 |
|
---|
| 36 | <para>The meaning of the configure option:</para>
|
---|
| 37 |
|
---|
| 38 | <itemizedlist>
|
---|
[9dfc02f] | 39 | <listitem><para><userinput>--exec-prefix=""</userinput>: This causes the
|
---|
[673b0d8] | 40 | binaries to be installed in <filename>/bin</filename> instead of
|
---|
[73aedd1d] | 41 | <filename>/usr/bin</filename>. As the Psmisc programs are often used in
|
---|
| 42 | bootscripts, they should be available also when the <filename>/usr</filename>
|
---|
[ab3b93b] | 43 | file system isn't mounted.</para></listitem>
|
---|
[73aedd1d] | 44 | </itemizedlist>
|
---|
| 45 |
|
---|
| 46 | <para>Compile the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput>make</userinput></screen>
|
---|
| 49 |
|
---|
[673b0d8] | 50 | <para>Now install it:</para>
|
---|
[73aedd1d] | 51 |
|
---|
| 52 | <screen><userinput>make install</userinput></screen>
|
---|
| 53 |
|
---|
[10e1008] | 54 | <para>There is no reason for the <filename>pstree</filename> and
|
---|
| 55 | <filename>pstree.x11</filename> programs to reside in
|
---|
| 56 | <filename class="directory">/bin</filename>. We therefore move them to
|
---|
| 57 | <filename class="directory">/usr/bin</filename>. Also, there is no need
|
---|
| 58 | for <filename>pstree.x11</filename> to exist as a separate program. We
|
---|
| 59 | therefore make it a symbolic link to <filename>pstree</filename>:</para>
|
---|
| 60 |
|
---|
| 61 | <screen><userinput>mv /bin/pstree* /usr/bin
|
---|
| 62 | ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
|
---|
| 63 |
|
---|
[90e3cb3] | 64 | <para>By default Psmisc's <command>pidof</command> program isn't installed.
|
---|
[73aedd1d] | 65 | Generally, this isn't a problem because we later install the Sysvinit package,
|
---|
[90e3cb3] | 66 | which provides a better <command>pidof</command> program. But if you're not
|
---|
[73aedd1d] | 67 | going to use Sysvinit, you should complete the installation of Psmisc by
|
---|
| 68 | creating the following symlink:</para>
|
---|
| 69 |
|
---|
| 70 | <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
[6370fa6] | 73 |
|
---|
[5888299] | 74 |
|
---|
[c6cb3aa] | 75 | <sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
|
---|
[673b0d8] | 76 |
|
---|
[c6cb3aa] | 77 | <segmentedlist>
|
---|
| 78 | <segtitle>Installed programs</segtitle>
|
---|
| 79 | <seglistitem><seg>fuser, killall, pstree and pstree.x11 (link to pstree)</seg></seglistitem>
|
---|
| 80 | </segmentedlist>
|
---|
[673b0d8] | 81 |
|
---|
[c6cb3aa] | 82 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 83 |
|
---|
[c6cb3aa] | 84 | <varlistentry>
|
---|
| 85 | <term id="fuser"><command>fuser</command></term>
|
---|
| 86 | <listitem>
|
---|
[673b0d8] | 87 | <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
|
---|
[c6cb3aa] | 88 | <para>reports the PIDs of processes that use the given files or file systems.</para>
|
---|
| 89 | </listitem>
|
---|
| 90 | </varlistentry>
|
---|
[73aedd1d] | 91 |
|
---|
[c6cb3aa] | 92 | <varlistentry>
|
---|
| 93 | <term id="killall"><command>killall</command></term>
|
---|
| 94 | <listitem>
|
---|
[673b0d8] | 95 | <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
|
---|
[c6cb3aa] | 96 | <para>kills processes by name. It sends a signal
|
---|
[673b0d8] | 97 | to all processes running any of the given commands.</para>
|
---|
[c6cb3aa] | 98 | </listitem>
|
---|
| 99 | </varlistentry>
|
---|
[673b0d8] | 100 |
|
---|
[c6cb3aa] | 101 | <varlistentry>
|
---|
| 102 | <term id="pstree"><command>pstree</command></term>
|
---|
| 103 | <listitem>
|
---|
[673b0d8] | 104 | <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
|
---|
[c6cb3aa] | 105 | <para>displays running processes as a tree.</para>
|
---|
| 106 | </listitem>
|
---|
| 107 | </varlistentry>
|
---|
[673b0d8] | 108 |
|
---|
[c6cb3aa] | 109 | <varlistentry>
|
---|
| 110 | <term id="pstree.x11"><command>pstree.x11</command></term>
|
---|
| 111 | <listitem>
|
---|
[673b0d8] | 112 | <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
|
---|
[c6cb3aa] | 113 | <para>same as pstree except that it waits for confirmation before exiting.</para>
|
---|
| 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
| 116 | </variablelist>
|
---|
[673b0d8] | 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | </sect1>
|
---|