source: clfs-sysroot/BOOK/final-system/common/psmisc.xml@ 85fb0c2

Last change on this file since 85fb0c2 was cc8d737, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Use cat instead of echo wherever possible.

  • 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 <sect2 role="installation">
26 <title>Installation of Psmisc</title>
27
28 <para os="a1">When cross-compiling the <literal>AC_FUNC_MALLOC</literal>
29 macro will assume that the malloc provided is not GNU Compatible. The
30 following tells it that we do:</para>
31
32<screen os="a2"><userinput>cat &gt; config.cache &lt;&lt; EOF
33ac_cv_func_malloc_0_nonnull=yes
34ac_cv_func_realloc_0_nonnull=yes
35EOF</userinput></screen>
36
37 <para os="a">Prepare Psmisc for compilation:</para>
38
39<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
40 --prefix=/usr --exec-prefix="" \
41 --cache-file=config.cache</userinput></screen>
42
43 <variablelist os="c">
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 CLFS-Bootscripts package.</para>
54 </listitem>
55 </varlistentry>
56 </variablelist>
57
58 <para os="d">Compile the package:</para>
59
60<screen os="e"><userinput>make</userinput></screen>
61
62 <para os="f">Install the package:</para>
63
64<screen os="g"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
65
66 <para os="h">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="i"><userinput>mv -v ${CLFS}/bin/pstree* ${CLFS}/usr/bin</userinput></screen>
72
73 <para os="j">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="k" role="nodump"><userinput>ln -sfv killall ${CLFS}/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="oldfuser">
122 <term><command>oldfuser</command></term>
123 <listitem>
124 <para>Reports the Process IDs (PIDs) of processes that use the given
125 files or file systems</para>
126 <indexterm zone="ch-system-psmisc oldfuser">
127 <primary sortas="b-oldfuser">oldfuser</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="pstree">
133 <term><command>pstree</command></term>
134 <listitem>
135 <para>Displays running processes as a tree</para>
136 <indexterm zone="ch-system-psmisc pstree">
137 <primary sortas="b-pstree">pstree</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="pstree.x11">
143 <term><command>pstree.x11</command></term>
144 <listitem>
145 <para>Same as <command>pstree</command>, except that it waits for
146 confirmation before exiting</para>
147 <indexterm zone="ch-system-psmisc pstree.x11">
148 <primary sortas="b-pstree.x11">pstree.x11</primary>
149 </indexterm>
150 </listitem>
151 </varlistentry>
152
153 </variablelist>
154
155 </sect2>
156
157</sect1>
Note: See TracBrowser for help on using the repository browser.