Ignore:
Timestamp:
02/07/2006 07:46:27 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Children:
e02afe0
Parents:
1798edf
Message:

Ported r7357 and r7362 from trunk to alphabetical branch.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/psmisc.xml

    r1798edf r529c103  
    11<?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" [
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
    34  <!ENTITY % general-entities SYSTEM "../general.ent">
    45  %general-entities;
    56]>
     7
    68<sect1 id="ch-system-psmisc" role="wrap">
    7 <title>Psmisc-&psmisc-version;</title>
    8 <?dbhtml filename="psmisc.html"?>
     9  <?dbhtml filename="psmisc.html"?>
    910
    10 <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
     11  <title>Psmisc-&psmisc-version;</title>
    1112
    12 <sect2 role="package"><title/>
    13 <para>The Psmisc package contains programs for displaying information about
    14 running processes.</para>
     13  <indexterm zone="ch-system-psmisc">
     14    <primary sortas="a-Psmisc">Psmisc</primary>
     15  </indexterm>
    1516
    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>
     17  <sect2 role="package">
     18    <title/>
    2119
    22 <segmentedlist>
    23 <segtitle>&dependencies;</segtitle>
    24 <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
    25 GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
    26 </segmentedlist>
    27 </sect2>
     20    <para>The Psmisc package contains programs for displaying information about
     21    running processes.</para>
    2822
    29 <sect2 role="installation">
    30 <title>Installation of Psmisc</title>
     23    <segmentedlist>
     24      <segtitle>&buildtime;</segtitle>
     25      <segtitle>&diskspace;</segtitle>
    3126
    32 <para>Prepare Psmisc for compilation:</para>
     27      <seglistitem>
     28        <seg>0.1 SBU</seg>
     29        <seg>1.7 MB</seg>
     30      </seglistitem>
     31    </segmentedlist>
     32
     33    <segmentedlist>
     34      <segtitle>&dependencies;</segtitle>
     35
     36      <seglistitem>
     37        <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep,
     38        Make, Ncurses, and Sed</seg>
     39      </seglistitem>
     40    </segmentedlist>
     41
     42  </sect2>
     43
     44  <sect2 role="installation">
     45    <title>Installation of Psmisc</title>
     46
     47    <para>Prepare Psmisc for compilation:</para>
    3348
    3449<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
    3550
    36 <para>The meaning of the configure options:</para>
     51    <variablelist>
     52      <title>The meaning of the configure options:</title>
    3753
    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
    43 class="directory">/usr/bin</filename>. This is the correct location according to
    44 the FHS, because some of the Psmisc binaries are used by the LFS-Bootscripts
    45 package.</para></listitem>
    46 </varlistentry>
    47 </variablelist>
     54      <varlistentry>
     55        <term><parameter>--exec-prefix=""</parameter></term>
     56        <listitem>
     57          <para>This ensures that the Psmisc binaries will install into
     58          <filename class="directory">/bin</filename> instead of <filename
     59          class="directory">/usr/bin</filename>. This is the correct location
     60          according to the FHS, because some of the Psmisc binaries are used
     61          by the LFS-Bootscripts package.</para>
     62        </listitem>
     63      </varlistentry>
    4864
    49 <para>Compile the package:</para>
     65    </variablelist>
     66
     67    <para>Compile the package:</para>
    5068
    5169<screen><userinput>make</userinput></screen>
    5270
    53 <para>This package does not come with a test suite.</para>
     71    <para>This package does not come with a test suite.</para>
    5472
    55 <para>Install the package:</para>
     73    <para>Install the package:</para>
    5674
    5775<screen><userinput>make install</userinput></screen>
    5876
    59 <para>There is no reason for the <command>pstree</command> and
    60 <command>pstree.x11</command> programs to reside in <filename
    61 class="directory">/bin</filename>. Therefore, move them to <filename
    62 class="directory">/usr/bin</filename>:</para>
     77    <para>There is no reason for the <command>pstree</command> and
     78    <command>pstree.x11</command> programs to reside in <filename
     79    class="directory">/bin</filename>. Therefore, move them to <filename
     80    class="directory">/usr/bin</filename>:</para>
    6381
    6482<screen><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen>
    6583
    66 <para>By default, Psmisc's <command>pidof</command> program is not
    67 installed. This usually is not a problem because it is installed later
    68 in the Sysvinit package, which provides a better
    69 <command>pidof</command> program. If Sysvinit will not be used for a
    70 particular system, complete the installation of Psmisc by creating the
    71 following symlink:</para>
     84    <para>By default, Psmisc's <command>pidof</command> program is not
     85    installed. This usually is not a problem because it is installed later
     86    in the Sysvinit package, which provides a better
     87    <command>pidof</command> program. If Sysvinit will not be used for a
     88    particular system, complete the installation of Psmisc by creating the
     89    following symlink:</para>
    7290
    7391<screen><userinput>ln -sv killall /bin/pidof</userinput></screen>
    7492
    75 </sect2>
     93  </sect2>
    7694
     95  <sect2 id="contents-psmisc" role="content">
     96    <title>Contents of Psmisc</title>
    7797
    78 <sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
     98    <segmentedlist>
     99      <segtitle>Installed programs</segtitle>
    79100
    80 <segmentedlist>
    81 <segtitle>Installed programs</segtitle>
    82 <seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>
    83 </segmentedlist>
     101      <seglistitem>
     102        <seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg>
     103      </seglistitem>
     104    </segmentedlist>
    84105
    85 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
    86 <?dbfo list-presentation="list"?>
    87 <?dbhtml list-presentation="table"?>
     106    <variablelist>
     107      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
     108      <?dbfo list-presentation="list"?>
     109      <?dbhtml list-presentation="table"?>
    88110
    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>
     111      <varlistentry id="fuser">
     112        <term><command>fuser</command></term>
     113        <listitem>
     114          <para>Reports the Process IDs (PIDs) of processes that use the given
     115          files or file systems</para>
     116          <indexterm zone="ch-system-psmisc fuser">
     117            <primary sortas="b-fuser">fuser</primary>
     118          </indexterm>
     119        </listitem>
     120      </varlistentry>
    96121
    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
    101 running any of the given commands</para>
    102 <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
    103 </listitem>
    104 </varlistentry>
     122      <varlistentry id="killall">
     123        <term><command>killall</command></term>
     124        <listitem>
     125          <para>Kills processes by name; it sends a signal to all processes
     126          running any of the given commands</para>
     127          <indexterm zone="ch-system-psmisc killall">
     128            <primary sortas="b-killall">killall</primary>
     129          </indexterm>
     130        </listitem>
     131      </varlistentry>
    105132
    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>
     133      <varlistentry id="oldfuser">
     134        <term><command>oldfuser</command></term>
     135        <listitem>
     136          <para>Reports the Process IDs (PIDs) of processes that use the given
     137          files or file systems</para>
     138          <indexterm zone="ch-system-psmisc oldfuser">
     139            <primary sortas="b-oldfuser">oldfuser</primary>
     140          </indexterm>
     141        </listitem>
     142      </varlistentry>
    113143
    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>
     144      <varlistentry id="pstree">
     145        <term><command>pstree</command></term>
     146        <listitem>
     147          <para>Displays running processes as a tree</para>
     148          <indexterm zone="ch-system-psmisc pstree">
     149            <primary sortas="b-pstree">pstree</primary>
     150          </indexterm>
     151        </listitem>
     152      </varlistentry>
    121153
    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>
     154      <varlistentry id="pstree.x11">
     155        <term><command>pstree.x11</command></term>
     156        <listitem>
     157          <para>Same as <command>pstree</command>, except that it waits for
     158          confirmation before exiting</para>
     159          <indexterm zone="ch-system-psmisc pstree.x11">
     160            <primary sortas="b-pstree.x11">pstree.x11</primary>
     161          </indexterm>
     162        </listitem>
     163      </varlistentry>
    130164
    131 </sect2>
     165    </variablelist>
     166
     167  </sect2>
    132168
    133169</sect1>
    134 
Note: See TracChangeset for help on using the changeset viewer.