source: clfs-sysroot/BOOK/final-system/common/psmisc.xml@ 3a8c95d

Last change on this file since 3a8c95d was 394cdeb, checked in by Joe Ciccone <jciccone@…>, 17 years ago

Keep all the link commands consistant.

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