source: clfs-sysroot/BOOK/final-system/common/psmisc.xml@ 9db6797

Last change on this file since 9db6797 was 12e6567, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

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