aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/psmisc-inst.xml
blob: 4afb3a845fe0e2d45615d82857a11d052443fdd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>

<sect2>
<title>Installation of Psmisc</title>

<para>Prepare Psmisc for compilation:</para>

<para><screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen></para>

<para>The <emphasis>--exec-prefix=/</emphasis> flag will cause the
programs to be installed in /bin rather than in /usr/bin. The programs
in this package are often used in bootscripts; they should be in the /bin
directory so they can be used in the event that the <filename
class="directory">/usr</filename> partition isn't mounted.</para>

<para>Compile the package:</para>

<para><screen><userinput>make</userinput></screen></para>

<para>And install it:</para>

<para><screen><userinput>make install</userinput></screen></para>

<para>Psmisc's <userinput>pidof</userinput> program isn't installed by default.
Generally, this isn't a problem because we later install the Sysvinit package,
which provides a better <userinput>pidof</userinput> program.</para>

<para>It's up to you to decide if you are going to use the Sysvinit package,
which provides a <userinput>pidof</userinput> program, or not. If you're not
going to use Sysvinit, you should complete this package's installation by
creating the <filename>/bin/pidof</filename> symlink:</para>

<para><screen><userinput>ln -s killall /bin/pidof</userinput></screen></para>

</sect2>