source: BOOK/final-system/common/psmisc.xml @ 3373dd11

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 3373dd11 was 3373dd11, checked in by Jim Gifford <clfs@…>, 18 years ago

r668@server (orig r666): manuel | 2005-11-08 15:25:13 -0800
Removing SBUs and DUs. Chapter final-system, round 6.

  • Property mode set to 100644
File size: 4.7 KB
Line 
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  <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6  %general-entities;
7  %patches-entities;
8]>
9
10<sect1 id="ch-system-psmisc" role="wrap">
11  <?dbhtml filename="psmisc.html"?>
12
13  <title>Psmisc-&psmisc-version;</title>
14
15  <indexterm zone="ch-system-psmisc">
16    <primary sortas="a-Psmisc">Psmisc</primary>
17  </indexterm>
18
19  <sect2 role="package">
20    <title/>
21
22    <para>The Psmisc package contains programs for displaying information
23    about running processes.</para>
24
25    <segmentedlist>
26      <segtitle>&dependencies;</segtitle>
27
28      <seglistitem>
29        <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc,
30        Grep, Make, Ncurses, and Sed</seg>
31      </seglistitem>
32    </segmentedlist>
33
34  </sect2>
35
36  <sect2 role="installation">
37    <title>Installation of Psmisc</title>
38
39    <para os="a">Prepare Psmisc for compilation:</para>
40
41<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
42
43    <variablelist os="b">
44      <title>The meaning of the configure option:</title>
45
46      <varlistentry>
47        <term><parameter>--exec-prefix=""</parameter></term>
48        <listitem>
49          <para>This ensures that the Psmisc binaries will install into
50          <filename class="directory">/bin</filename> instead of
51          <filename class="directory">/usr/bin</filename>. This is the
52          correct location according to the FHS, because some of the Psmisc
53          binaries are used by the LFS-Bootscripts package.</para>
54        </listitem>
55      </varlistentry>
56    </variablelist>
57
58    <para os="c">Compile the package:</para>
59
60<screen os="d"><userinput>make</userinput></screen>
61
62    <para os="e">Install the package:</para>
63
64<screen os="f"><userinput>make install</userinput></screen>
65
66    <para os="g">There is no reason for the <command>pstree</command> and
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
71<screen os="h"><userinput>mv /bin/pstree* /usr/bin</userinput></screen>
72
73    <para os="i">By default, Psmisc's <command>pidof</command> program is not installed.
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
79<screen os="j"><userinput>ln -s killall /bin/pidof</userinput></screen>
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>
Note: See TracBrowser for help on using the repository browser.