source: chapter06/psmisc.xml@ 46a2e9c

Last change on this file since 46a2e9c was 46a2e9c, checked in by Jeremy Huntwork <jhuntwork@…>, 18 years ago

Merged recent changes from trunk to lfs-alpha. Fixed typo.

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

  • Property mode set to 100644
File size: 4.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-psmisc" role="wrap">
7<title>Psmisc-&psmisc-version;</title>
8<?dbhtml filename="psmisc.html"?>
9
10<indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Psmisc package contains programs for displaying information about
14running processes.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>1.7 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Psmisc</title>
31
32<para>Prepare Psmisc for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
35
36<para>The meaning of the configure options:</para>
37
38<variablelist>
39<varlistentry>
40<term><parameter>--exec-prefix=""</parameter></term>
41<listitem><para>This ensures that the Psmisc binaries will install into
42<filename class="directory">/bin</filename> instead of <filename
43class="directory">/usr/bin</filename>. This is the correct location according to
44the FHS, because some of the Psmisc binaries are used by the LFS-Bootscripts
45package.</para></listitem>
46</varlistentry>
47</variablelist>
48
49<para>Compile the package:</para>
50
51<screen><userinput>make</userinput></screen>
52
53<para>This package does not come with a test suite.</para>
54
55<para>Install the package:</para>
56
57<screen><userinput>make install</userinput></screen>
58
59<para>There is no reason for the <command>pstree</command> and
60<command>pstree.x11</command> programs to reside in <filename
61class="directory">/bin</filename>. Therefore, move them to <filename
62class="directory">/usr/bin</filename>:</para>
63
64<screen><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen>
65
66<para>By default, Psmisc's <command>pidof</command> program is not
67installed. This usually is not a problem because it is installed later
68in the Sysvinit package, which provides a better
69<command>pidof</command> program. If Sysvinit will not be used for a
70particular system, complete the installation of Psmisc by creating the
71following symlink:</para>
72
73<screen><userinput>ln -sv killall /bin/pidof</userinput></screen>
74
75</sect2>
76
77
78<sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
79
80<segmentedlist>
81<segtitle>Installed programs</segtitle>
82<seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>
83</segmentedlist>
84
85<variablelist><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 files or file systems</para>
93<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
94</listitem>
95</varlistentry>
96
97<varlistentry id="killall">
98<term><command>killall</command></term>
99<listitem>
100<para>Kills processes by name; it sends a signal to all processes
101running any of the given commands</para>
102<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
103</listitem>
104</varlistentry>
105
106<varlistentry id="oldfuser">
107<term><command>oldfuser</command></term>
108<listitem>
109<para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para>
110<indexterm zone="ch-system-psmisc oldfuser"><primary sortas="b-oldfuser">oldfuser</primary></indexterm>
111</listitem>
112</varlistentry>
113
114<varlistentry id="pstree">
115<term><command>pstree</command></term>
116<listitem>
117<para>Displays running processes as a tree</para>
118<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
119</listitem>
120</varlistentry>
121
122<varlistentry id="pstree.x11">
123<term><command>pstree.x11</command></term>
124<listitem>
125<para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para>
126<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
127</listitem>
128</varlistentry>
129</variablelist>
130
131</sect2>
132
133</sect1>
134
Note: See TracBrowser for help on using the repository browser.