source: chapter06/psmisc.xml@ 835892c

Last change on this file since 835892c was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

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

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-psmisc" xreflabel="Psmisc" role="wrap">
[6a0e6f3]8<title>Psmisc-&psmisc-version;</title>
[673b0d8]9<?dbhtml filename="psmisc.html"?>
10
11<indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
[6370fa6]12
[6a0e6f3]13<section role="package"><title/>
[5888299]14<para>The Psmisc package contains programs for displaying information on
15processes.</para>
16
[a001133]17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem>
21</segmentedlist>
[673b0d8]22
[a001133]23<segmentedlist>
24<segtitle>Psmisc installation depends on</segtitle>
25<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
26GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed</seg></seglistitem>
27</segmentedlist>
[1fe35e1]28</section>
[3554fa3a]29
[1fe35e1]30<section role="installation">
[6a0e6f3]31<title>Installation of Psmisc</title>
[73aedd1d]32
33<para>Prepare Psmisc for compilation:</para>
34
[9dfc02f]35<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
[73aedd1d]36
37<para>The meaning of the configure option:</para>
38
[df8334f]39<variablelist>
40<varlistentry>
[8ad7980]41<term><parameter>--exec-prefix=""</parameter></term>
[df8334f]42<listitem><para>This causes the
[8ad7980]43binaries to be installed in <filename class="directory">/bin</filename> instead of
44<filename class="directory">/usr/bin</filename>. As the Psmisc programs are often used in
45bootscripts, they should be available also when the <filename class="directory">/usr</filename>
[ab3b93b]46file system isn't mounted.</para></listitem>
[df8334f]47</varlistentry>
48</variablelist>
[73aedd1d]49
50<para>Compile the package:</para>
51
52<screen><userinput>make</userinput></screen>
53
[673b0d8]54<para>Now install it:</para>
[73aedd1d]55
56<screen><userinput>make install</userinput></screen>
57
[8ad7980]58<para>There is no reason for the <command>pstree</command> and
59<command>pstree.x11</command> programs to reside in
[10e1008]60<filename class="directory">/bin</filename>. We therefore move them to
61<filename class="directory">/usr/bin</filename>. Also, there is no need
[8ad7980]62for <command>pstree.x11</command> to exist as a separate program. We
63therefore make it a symbolic link to <command>pstree</command>:</para>
[10e1008]64
65<screen><userinput>mv /bin/pstree* /usr/bin
66ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
67
[90e3cb3]68<para>By default Psmisc's <command>pidof</command> program isn't installed.
[73aedd1d]69Generally, this isn't a problem because we later install the Sysvinit package,
[90e3cb3]70which provides a better <command>pidof</command> program. But if you're not
[73aedd1d]71going to use Sysvinit, you should complete the installation of Psmisc by
72creating the following symlink:</para>
73
74<screen><userinput>ln -s killall /bin/pidof</userinput></screen>
75
[1fe35e1]76</section>
[6370fa6]77
[5888299]78
[6a0e6f3]79<section xml:id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
[673b0d8]80
[c6cb3aa]81<segmentedlist>
82<segtitle>Installed programs</segtitle>
83<seglistitem><seg>fuser, killall, pstree and pstree.x11 (link to pstree)</seg></seglistitem>
84</segmentedlist>
[673b0d8]85
[c6cb3aa]86<variablelist><title>Short descriptions</title>
[673b0d8]87
[1fe35e1]88<varlistentry xml:id="fuser">
[b8a819f]89<term><command>fuser</command></term>
[c6cb3aa]90<listitem>
[673b0d8]91<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
[c6cb3aa]92<para>reports the PIDs of processes that use the given files or file systems.</para>
93</listitem>
94</varlistentry>
[73aedd1d]95
[1fe35e1]96<varlistentry xml:id="killall">
[b8a819f]97<term><command>killall</command></term>
[c6cb3aa]98<listitem>
[673b0d8]99<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
[c6cb3aa]100<para>kills processes by name. It sends a signal
[673b0d8]101to all processes running any of the given commands.</para>
[c6cb3aa]102</listitem>
103</varlistentry>
[673b0d8]104
[1fe35e1]105<varlistentry xml:id="pstree">
[b8a819f]106<term><command>pstree</command></term>
[c6cb3aa]107<listitem>
[673b0d8]108<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
[c6cb3aa]109<para>displays running processes as a tree.</para>
110</listitem>
111</varlistentry>
[673b0d8]112
[1fe35e1]113<varlistentry xml:id="pstree.x11">
[b8a819f]114<term><command>pstree.x11</command></term>
[c6cb3aa]115<listitem>
[673b0d8]116<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
[c6cb3aa]117<para>same as pstree except that it waits for confirmation before exiting.</para>
118</listitem>
119</varlistentry>
120</variablelist>
[673b0d8]121
[1fe35e1]122</section>
[673b0d8]123
[1fe35e1]124</section>
Note: See TracBrowser for help on using the repository browser.