source: chapter06/psmisc.xml@ ebd0c23

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 12.2 12.2-rc1 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since ebd0c23 was a9fa36e, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Remove optional symlink in psmisc
becasue if it is not overwritten by the sysvinit, it will break the init scripts

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

  • Property mode set to 100644
File size: 5.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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 <sect1info condition="script">
12 <productname>psmisc</productname>
13 <productnumber>&psmisc-version;</productnumber>
14 <address>&psmisc-url;</address>
15 </sect1info>
16
17 <title>Psmisc-&psmisc-version;</title>
18
19 <indexterm zone="ch-system-psmisc">
20 <primary sortas="a-Psmisc">Psmisc</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Psmisc package contains programs for displaying information about
27 running processes.</para>
28
29 <segmentedlist>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
32
33 <seglistitem>
34 <seg>&psmisc-ch6-sbu;</seg>
35 <seg>&psmisc-ch6-du;</seg>
36 </seglistitem>
37 </segmentedlist>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of Psmisc</title>
43
44 <para>Fix a bug that prevents <command>peekfd</command> from being built on
45 the x86_64 architecture:</para>
46
47<screen><userinput remap="pre">sed -i 's@#include &lt;sys\/user.h&gt;@#include &lt;bits\/types.h&gt;\n&amp;@' configure</userinput></screen>
48
49 <para>Prepare Psmisc for compilation:</para>
50
51<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
52
53 <para>Compile the package:</para>
54
55<screen><userinput remap="make">make</userinput></screen>
56
57 <para>This package does not come with a test suite.</para>
58
59 <para>Install the package:</para>
60
61<screen><userinput remap="install">make install</userinput></screen>
62
63<!--
64 <para>By default, Psmisc's <command>pidof</command> program is not
65 installed. This usually is not a problem because it is installed later
66 in the Sysvinit package, which provides a better
67 <command>pidof</command> program. If Sysvinit will not be used for a
68 particular system, complete the installation of Psmisc by first moving
69 the <command>killall</command> to the correct location, as specified by the
70 FHS, then create a symlink to it:</para>
71
72<screen><userinput remap="install">mv /usr/bin/killall /bin
73ln -sv killall /bin/pidof</userinput></screen>
74-->
75 <para>Finally, move the <command>killall</command> and <command>fuser</command>
76 programs to the location specified by the FHS:</para>
77
78<screen><userinput remap="install">mv -v /usr/bin/fuser /bin
79mv -v /usr/bin/killall /bin</userinput></screen>
80
81 </sect2>
82
83 <sect2 id="contents-psmisc" role="content">
84 <title>Contents of Psmisc</title>
85
86 <segmentedlist>
87 <segtitle>Installed programs</segtitle>
88
89 <seglistitem>
90 <seg>fuser, killall, peekfd, prtstat, pstree, and pstree.x11 (link to pstree)</seg>
91 </seglistitem>
92 </segmentedlist>
93
94 <variablelist>
95 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
96 <?dbfo list-presentation="list"?>
97 <?dbhtml list-presentation="table"?>
98
99 <varlistentry id="fuser">
100 <term><command>fuser</command></term>
101 <listitem>
102 <para>Reports the Process IDs (PIDs) of processes that use the given
103 files or file systems</para>
104 <indexterm zone="ch-system-psmisc fuser">
105 <primary sortas="b-fuser">fuser</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 <varlistentry id="killall">
111 <term><command>killall</command></term>
112 <listitem>
113 <para>Kills processes by name; it sends a signal to all processes
114 running any of the given commands</para>
115 <indexterm zone="ch-system-psmisc killall">
116 <primary sortas="b-killall">killall</primary>
117 </indexterm>
118 </listitem>
119 </varlistentry>
120
121 <varlistentry id="peekfd">
122 <term><command>peekfd</command></term>
123 <listitem>
124 <para>Peek at file descriptors of a running process, given its
125 PID</para>
126 <indexterm zone="ch-system-psmisc peekfd">
127 <primary sortas="b-peekfd">peekfd</primary>
128 </indexterm>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry id="prtstat">
133 <term><command>prtstat</command></term>
134 <listitem>
135 <para>Prints information about a process</para>
136 <indexterm zone="ch-system-psmisc prtstat">
137 <primary sortas="b-prtstat">prtstat</primary>
138 </indexterm>
139 </listitem>
140 </varlistentry>
141
142 <varlistentry id="pstree">
143 <term><command>pstree</command></term>
144 <listitem>
145 <para>Displays running processes as a tree</para>
146 <indexterm zone="ch-system-psmisc pstree">
147 <primary sortas="b-pstree">pstree</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="pstree.x11">
153 <term><command>pstree.x11</command></term>
154 <listitem>
155 <para>Same as <command>pstree</command>, except that it waits for
156 confirmation before exiting</para>
157 <indexterm zone="ch-system-psmisc pstree.x11">
158 <primary sortas="b-pstree.x11">pstree.x11</primary>
159 </indexterm>
160 </listitem>
161 </varlistentry>
162
163 </variablelist>
164
165 </sect2>
166
167</sect1>
Note: See TracBrowser for help on using the repository browser.