source: clfs-sysroot/BOOK/final-system/common/psmisc.xml@ 92dd9ff

Last change on this file since 92dd9ff was 1a09536, checked in by Joe Ciccone <jciccone@…>, 18 years ago

More LFS to CLFS updates.

  • Property mode set to 100644
File size: 4.9 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 %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 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Psmisc</title>
27
28 <para os="a">Prepare Psmisc for compilation:</para>
29
30<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
31 --prefix=/usr --exec-prefix=""</userinput></screen>
32
33 <variablelist os="c">
34 <title>The meaning of the configure option:</title>
35
36 <varlistentry>
37 <term><parameter>--exec-prefix=""</parameter></term>
38 <listitem>
39 <para>This ensures that the Psmisc binaries will install into
40 <filename class="directory">/bin</filename> instead of
41 <filename class="directory">/usr/bin</filename>. This is the
42 correct location according to the FHS, because some of the Psmisc
43 binaries are used by the CLFS-Bootscripts package.</para>
44 </listitem>
45 </varlistentry>
46 </variablelist>
47
48 <para os="d">Compile the package:</para>
49
50<screen os="e"><userinput>make</userinput></screen>
51
52 <para os="f">Install the package:</para>
53
54<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
55
56 <para os="h">There is no reason for the <command>pstree</command> and
57 <command>pstree.x11</command> programs to reside in <filename
58 class="directory">/bin</filename>. Therefore, move them to <filename
59 class="directory">/usr/bin</filename>:</para>
60
61<screen os="i"><userinput>mv -v ${CLFS}/bin/pstree* ${CLFS}/usr/bin</userinput></screen>
62
63 <para os="j">By default, Psmisc's <command>pidof</command> program is not installed.
64 This usually is not a problem because it is installed later in the Sysvinit
65 package, which provides a better <command>pidof</command> program. If
66 Sysvinit will not be used for a particular system, complete the installation
67 of Psmisc by creating the following symlink:</para>
68
69<screen os="k" role="nodump"><userinput>ln -sv killall ${CLFS}/bin/pidof</userinput></screen>
70
71 </sect2>
72
73 <sect2 id="contents-psmisc" role="content">
74 <title>Contents of Psmisc</title>
75
76 <segmentedlist>
77 <segtitle>Installed programs</segtitle>
78
79 <seglistitem>
80 <seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg>
81 </seglistitem>
82 </segmentedlist>
83
84 <variablelist>
85 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
86 <?dbfo list-presentation="list"?>
87 <?dbhtml list-presentation="table"?>
88
89 <varlistentry id="fuser">
90 <term><command>fuser</command></term>
91 <listitem>
92 <para>Reports the Process IDs (PIDs) of processes that use the given
93 files or file systems</para>
94 <indexterm zone="ch-system-psmisc fuser">
95 <primary sortas="b-fuser">fuser</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry id="killall">
101 <term><command>killall</command></term>
102 <listitem>
103 <para>Kills processes by name; it sends a signal to all processes
104 running any of the given commands</para>
105 <indexterm zone="ch-system-psmisc killall">
106 <primary sortas="b-killall">killall</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 <varlistentry id="oldfuser">
112 <term><command>oldfuser</command></term>
113 <listitem>
114 <para>Reports the Process IDs (PIDs) of processes that use the given
115 files or file systems</para>
116 <indexterm zone="ch-system-psmisc oldfuser">
117 <primary sortas="b-oldfuser">oldfuser</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="pstree">
123 <term><command>pstree</command></term>
124 <listitem>
125 <para>Displays running processes as a tree</para>
126 <indexterm zone="ch-system-psmisc pstree">
127 <primary sortas="b-pstree">pstree</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="pstree.x11">
133 <term><command>pstree.x11</command></term>
134 <listitem>
135 <para>Same as <command>pstree</command>, except that it waits for
136 confirmation before exiting</para>
137 <indexterm zone="ch-system-psmisc pstree.x11">
138 <primary sortas="b-pstree.x11">pstree.x11</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 </variablelist>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.