source: chapter06/psmisc.xml@ a9fde34e

Last change on this file since a9fde34e was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

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