source: chapter06/psmisc.xml@ aabd480

6.1 6.1.1
Last change on this file since aabd480 was aabd480, checked in by Archaic <archaic@…>, 19 years ago

Brought all occurences of LFS-Bootscripts into conformity. (merged from trunk r6288)

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

  • Property mode set to 100644
File size: 4.1 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>Install the package:</para>
54
55<screen><userinput>make install</userinput></screen>
56
57<para>There is no reason for the <command>pstree</command> and
58<command>pstree.x11</command> programs to reside in <filename
59class="directory">/bin</filename>. Therefore, move them to <filename
60class="directory">/usr/bin</filename>:</para>
61
62<screen><userinput>mv /bin/pstree* /usr/bin</userinput></screen>
63
64<para>By default, Psmisc's <command>pidof</command> program is not
65installed. This usually is not a problem because it is installed later
66in the Sysvinit package, which provides a better
67<command>pidof</command> program. If Sysvinit will not be used for a
68particular system, complete the installation of Psmisc by creating the
69following symlink:</para>
70
71<screen><userinput>ln -s killall /bin/pidof</userinput></screen>
72
73</sect2>
74
75
76<sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
77
78<segmentedlist>
79<segtitle>Installed programs</segtitle>
80<seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>
81</segmentedlist>
82
83<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
84<?dbfo list-presentation="list"?>
85<?dbhtml list-presentation="table"?>
86
87<varlistentry id="fuser">
88<term><command>fuser</command></term>
89<listitem>
90<para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para>
91<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
92</listitem>
93</varlistentry>
94
95<varlistentry id="killall">
96<term><command>killall</command></term>
97<listitem>
98<para>Kills processes by name; it sends a signal to all processes
99running any of the given commands</para>
100<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
101</listitem>
102</varlistentry>
103
104<varlistentry id="pstree">
105<term><command>pstree</command></term>
106<listitem>
107<para>Displays running processes as a tree</para>
108<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
109</listitem>
110</varlistentry>
111
112<varlistentry id="pstree.x11">
113<term><command>pstree.x11</command></term>
114<listitem>
115<para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para>
116<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
117</listitem>
118</varlistentry>
119</variablelist>
120
121</sect2>
122
123</sect1>
124
Note: See TracBrowser for help on using the repository browser.