1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-system-psmisc" xreflabel="Psmisc">
|
---|
7 | <title>Psmisc-&psmisc-version;</title>
|
---|
8 | <?dbhtml filename="psmisc.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
|
---|
11 |
|
---|
12 | <para>The Psmisc package contains programs for displaying information on
|
---|
13 | processes.</para>
|
---|
14 |
|
---|
15 | <screen>&buildtime; 0.1 SBU
|
---|
16 | &diskspace; 2.2 MB</screen>
|
---|
17 |
|
---|
18 | <para>Psmisc installation depends on: Bash, Binutils, Coreutils, Diffutils,
|
---|
19 | GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed.</para>
|
---|
20 |
|
---|
21 |
|
---|
22 |
|
---|
23 | <sect2>
|
---|
24 | <title>Installation of Psmisc</title>
|
---|
25 |
|
---|
26 | <para>Prepare Psmisc for compilation:</para>
|
---|
27 |
|
---|
28 | <screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen>
|
---|
29 |
|
---|
30 | <para>The meaning of the configure option:</para>
|
---|
31 |
|
---|
32 | <itemizedlist>
|
---|
33 | <listitem><para><userinput>--exec-prefix=/</userinput>: This causes the
|
---|
34 | binaries to be installed in <filename>/bin</filename> instead of
|
---|
35 | <filename>/usr/bin</filename>. As the Psmisc programs are often used in
|
---|
36 | bootscripts, they should be available also when the <filename>/usr</filename>
|
---|
37 | file system isn't mounted.</para></listitem>
|
---|
38 | </itemizedlist>
|
---|
39 |
|
---|
40 | <para>Compile the package:</para>
|
---|
41 |
|
---|
42 | <screen><userinput>make</userinput></screen>
|
---|
43 |
|
---|
44 | <para>Now install it:</para>
|
---|
45 |
|
---|
46 | <screen><userinput>make install</userinput></screen>
|
---|
47 |
|
---|
48 | <para>There is no reason for the <filename>pstree</filename> and
|
---|
49 | <filename>pstree.x11</filename> programs to reside in
|
---|
50 | <filename class="directory">/bin</filename>. We therefore move them to
|
---|
51 | <filename class="directory">/usr/bin</filename>. Also, there is no need
|
---|
52 | for <filename>pstree.x11</filename> to exist as a separate program. We
|
---|
53 | therefore make it a symbolic link to <filename>pstree</filename>:</para>
|
---|
54 |
|
---|
55 | <screen><userinput>mv /bin/pstree* /usr/bin
|
---|
56 | ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
|
---|
57 |
|
---|
58 | <para>By default Psmisc's <command>pidof</command> program isn't installed.
|
---|
59 | Generally, this isn't a problem because we later install the Sysvinit package,
|
---|
60 | which provides a better <command>pidof</command> program. But if you're not
|
---|
61 | going to use Sysvinit, you should complete the installation of Psmisc by
|
---|
62 | creating the following symlink:</para>
|
---|
63 |
|
---|
64 | <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
|
---|
65 |
|
---|
66 | </sect2>
|
---|
67 |
|
---|
68 |
|
---|
69 | <sect2 id="contents-psmisc"><title>Contents of Psmisc</title>
|
---|
70 |
|
---|
71 | <para><emphasis>Installed programs</emphasis>: fuser, killall, pstree and
|
---|
72 | pstree.x11 (link to pstree)</para>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 |
|
---|
77 | <sect2><title>Short descriptions</title>
|
---|
78 |
|
---|
79 | <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
|
---|
80 | <para id="fuser"><command>fuser</command> reports the PIDs of processes that use
|
---|
81 | the given files or file systems.</para>
|
---|
82 |
|
---|
83 | <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
|
---|
84 | <para id="killall"><command>killall</command> kills processes by name. It sends a signal
|
---|
85 | to all processes running any of the given commands.</para>
|
---|
86 |
|
---|
87 | <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
|
---|
88 | <para id="pstree"><command>pstree</command> displays running processes as a tree.</para>
|
---|
89 |
|
---|
90 | <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
|
---|
91 | <para id="pstree.x11"><command>pstree.x11</command> same as pstree except that it waits for
|
---|
92 | confirmation before exiting.</para>
|
---|
93 |
|
---|
94 | </sect2>
|
---|
95 |
|
---|
96 |
|
---|
97 |
|
---|
98 | </sect1>
|
---|