source: chapter06/psmisc.xml@ ff08e99

6.3
Last change on this file since ff08e99 was 2791a8e, checked in by Matthew Burgess <matthew@…>, 17 years ago

Update the list of installed programs and libraries for several packages

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8125 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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