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