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=${CLFS_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 DESTDIR=${CLFS} 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 ${CLFS}/bin/pstree* ${CLFS}/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 ${CLFS}/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="oldfuser">
|
---|
111 | <term><command>oldfuser</command></term>
|
---|
112 | <listitem>
|
---|
113 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
114 | files or file systems</para>
|
---|
115 | <indexterm zone="ch-system-psmisc oldfuser">
|
---|
116 | <primary sortas="b-oldfuser">oldfuser</primary>
|
---|
117 | </indexterm>
|
---|
118 | </listitem>
|
---|
119 | </varlistentry>
|
---|
120 |
|
---|
121 | <varlistentry id="pstree">
|
---|
122 | <term><command>pstree</command></term>
|
---|
123 | <listitem>
|
---|
124 | <para>Displays running processes as a tree</para>
|
---|
125 | <indexterm zone="ch-system-psmisc pstree">
|
---|
126 | <primary sortas="b-pstree">pstree</primary>
|
---|
127 | </indexterm>
|
---|
128 | </listitem>
|
---|
129 | </varlistentry>
|
---|
130 |
|
---|
131 | <varlistentry id="pstree.x11">
|
---|
132 | <term><command>pstree.x11</command></term>
|
---|
133 | <listitem>
|
---|
134 | <para>Same as <command>pstree</command>, except that it waits for
|
---|
135 | confirmation before exiting</para>
|
---|
136 | <indexterm zone="ch-system-psmisc pstree.x11">
|
---|
137 | <primary sortas="b-pstree.x11">pstree.x11</primary>
|
---|
138 | </indexterm>
|
---|
139 | </listitem>
|
---|
140 | </varlistentry>
|
---|
141 |
|
---|
142 | </variablelist>
|
---|
143 |
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | </sect1>
|
---|