diff options
Diffstat (limited to 'chapter06/psmisc.xml')
-rw-r--r-- | chapter06/psmisc.xml | 241 |
1 files changed, 138 insertions, 103 deletions
diff --git a/chapter06/psmisc.xml b/chapter06/psmisc.xml index a8165860b..f8f02f458 100644 --- a/chapter06/psmisc.xml +++ b/chapter06/psmisc.xml @@ -1,134 +1,169 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" + "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!ENTITY % general-entities SYSTEM "../general.ent"> %general-entities; ]> + <sect1 id="ch-system-psmisc" role="wrap"> -<title>Psmisc-&psmisc-version;</title> -<?dbhtml filename="psmisc.html"?> + <?dbhtml filename="psmisc.html"?> + + <title>Psmisc-&psmisc-version;</title> + + <indexterm zone="ch-system-psmisc"> + <primary sortas="a-Psmisc">Psmisc</primary> + </indexterm> + + <sect2 role="package"> + <title/> -<indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm> + <para>The Psmisc package contains programs for displaying information about + running processes.</para> -<sect2 role="package"><title/> -<para>The Psmisc package contains programs for displaying information about -running processes.</para> + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> -<segmentedlist> -<segtitle>&buildtime;</segtitle> -<segtitle>&diskspace;</segtitle> -<seglistitem><seg>0.1 SBU</seg><seg>1.7 MB</seg></seglistitem> -</segmentedlist> + <seglistitem> + <seg>0.1 SBU</seg> + <seg>1.7 MB</seg> + </seglistitem> + </segmentedlist> -<segmentedlist> -<segtitle>&dependencies;</segtitle> -<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, -GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem> -</segmentedlist> -</sect2> + <segmentedlist> + <segtitle>&dependencies;</segtitle> -<sect2 role="installation"> -<title>Installation of Psmisc</title> + <seglistitem> + <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, + Make, Ncurses, and Sed</seg> + </seglistitem> + </segmentedlist> -<para>Prepare Psmisc for compilation:</para> + </sect2> + + <sect2 role="installation"> + <title>Installation of Psmisc</title> + + <para>Prepare Psmisc for compilation:</para> <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen> -<para>The meaning of the configure options:</para> + <variablelist> + <title>The meaning of the configure options:</title> -<variablelist> -<varlistentry> -<term><parameter>--exec-prefix=""</parameter></term> -<listitem><para>This ensures that the Psmisc binaries will install into -<filename class="directory">/bin</filename> instead of <filename -class="directory">/usr/bin</filename>. This is the correct location according to -the FHS, because some of the Psmisc binaries are used by the LFS-Bootscripts -package.</para></listitem> -</varlistentry> -</variablelist> + <varlistentry> + <term><parameter>--exec-prefix=""</parameter></term> + <listitem> + <para>This ensures that the Psmisc binaries will install into + <filename class="directory">/bin</filename> instead of <filename + class="directory">/usr/bin</filename>. This is the correct location + according to the FHS, because some of the Psmisc binaries are used + by the LFS-Bootscripts package.</para> + </listitem> + </varlistentry> -<para>Compile the package:</para> + </variablelist> + + <para>Compile the package:</para> <screen><userinput>make</userinput></screen> -<para>This package does not come with a test suite.</para> + <para>This package does not come with a test suite.</para> -<para>Install the package:</para> + <para>Install the package:</para> <screen><userinput>make install</userinput></screen> -<para>There is no reason for the <command>pstree</command> and -<command>pstree.x11</command> programs to reside in <filename -class="directory">/bin</filename>. Therefore, move them to <filename -class="directory">/usr/bin</filename>:</para> + <para>There is no reason for the <command>pstree</command> and + <command>pstree.x11</command> programs to reside in <filename + class="directory">/bin</filename>. Therefore, move them to <filename + class="directory">/usr/bin</filename>:</para> <screen><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen> -<para>By default, Psmisc's <command>pidof</command> program is not -installed. This usually is not a problem because it is installed later -in the Sysvinit package, which provides a better -<command>pidof</command> program. If Sysvinit will not be used for a -particular system, complete the installation of Psmisc by creating the -following symlink:</para> + <para>By default, Psmisc's <command>pidof</command> program is not + installed. This usually is not a problem because it is installed later + in the Sysvinit package, which provides a better + <command>pidof</command> program. If Sysvinit will not be used for a + particular system, complete the installation of Psmisc by creating the + following symlink:</para> <screen><userinput>ln -sv killall /bin/pidof</userinput></screen> -</sect2> - - -<sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title> - -<segmentedlist> -<segtitle>Installed programs</segtitle> -<seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem> -</segmentedlist> - -<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> -<?dbfo list-presentation="list"?> -<?dbhtml list-presentation="table"?> - -<varlistentry id="fuser"> -<term><command>fuser</command></term> -<listitem> -<para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para> -<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm> -</listitem> -</varlistentry> - -<varlistentry id="killall"> -<term><command>killall</command></term> -<listitem> -<para>Kills processes by name; it sends a signal to all processes -running any of the given commands</para> -<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm> -</listitem> -</varlistentry> - -<varlistentry id="oldfuser"> -<term><command>oldfuser</command></term> -<listitem> -<para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para> -<indexterm zone="ch-system-psmisc oldfuser"><primary sortas="b-oldfuser">oldfuser</primary></indexterm> -</listitem> -</varlistentry> - -<varlistentry id="pstree"> -<term><command>pstree</command></term> -<listitem> -<para>Displays running processes as a tree</para> -<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm> -</listitem> -</varlistentry> - -<varlistentry id="pstree.x11"> -<term><command>pstree.x11</command></term> -<listitem> -<para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para> -<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm> -</listitem> -</varlistentry> -</variablelist> - -</sect2> + </sect2> + + <sect2 id="contents-psmisc" role="content"> + <title>Contents of Psmisc</title> + + <segmentedlist> + <segtitle>Installed programs</segtitle> + + <seglistitem> + <seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg> + </seglistitem> + </segmentedlist> + + <variablelist> + <bridgehead renderas="sect3">Short Descriptions</bridgehead> + <?dbfo list-presentation="list"?> + <?dbhtml list-presentation="table"?> + + <varlistentry id="fuser"> + <term><command>fuser</command></term> + <listitem> + <para>Reports the Process IDs (PIDs) of processes that use the given + files or file systems</para> + <indexterm zone="ch-system-psmisc fuser"> + <primary sortas="b-fuser">fuser</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="killall"> + <term><command>killall</command></term> + <listitem> + <para>Kills processes by name; it sends a signal to all processes + running any of the given commands</para> + <indexterm zone="ch-system-psmisc killall"> + <primary sortas="b-killall">killall</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="oldfuser"> + <term><command>oldfuser</command></term> + <listitem> + <para>Reports the Process IDs (PIDs) of processes that use the given + files or file systems</para> + <indexterm zone="ch-system-psmisc oldfuser"> + <primary sortas="b-oldfuser">oldfuser</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="pstree"> + <term><command>pstree</command></term> + <listitem> + <para>Displays running processes as a tree</para> + <indexterm zone="ch-system-psmisc pstree"> + <primary sortas="b-pstree">pstree</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="pstree.x11"> + <term><command>pstree.x11</command></term> + <listitem> + <para>Same as <command>pstree</command>, except that it waits for + confirmation before exiting</para> + <indexterm zone="ch-system-psmisc pstree.x11"> + <primary sortas="b-pstree.x11">pstree.x11</primary> + </indexterm> + </listitem> + </varlistentry> + + </variablelist> + + </sect2> </sect1> - |