2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
|
|
|
<para>The first thing to understand in installing any package written
|
|
|
|
by Daniel J. Bernstein, and
|
2003-09-26 07:39:56 +08:00
|
|
|
this includes <application>qmail</application>, <application>djbdns
|
|
|
|
</application> and <application>ucspi-tcp</application> in addition to
|
|
|
|
<application>daemontools</application>, is that he is willing to completely
|
|
|
|
disregard standards if his idea of the correct thing to do differs from an
|
|
|
|
particular standard. Professor Bernstein is a standards body unto himself when
|
|
|
|
it comes to his own software. </para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
<para>It is therefore necessary to make quite a few changes to the
|
|
|
|
installation commands for his packages to get them to install in a manner
|
2003-09-26 07:39:56 +08:00
|
|
|
that is compliant with the Filesystem Hierarchy Standard
|
|
|
|
(<acronym>FHS</acronym>). Most of the following commands are due to this
|
|
|
|
difficulty.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-10-03 06:40:45 +08:00
|
|
|
<para><command>cd admin/daemontools-0.76</command>: First off, the package is
|
2003-09-26 07:39:56 +08:00
|
|
|
unpacked in an <filename>admin</filename> directory. You will find the actual
|
2002-07-08 04:28:42 +08:00
|
|
|
packages two directory levels below this.</para>
|
|
|
|
|
2003-10-03 06:40:45 +08:00
|
|
|
<para><command>package/compile</command>: This command actually
|
2003-04-12 11:48:46 +08:00
|
|
|
compiles the source and prepares the binaries.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-26 07:39:56 +08:00
|
|
|
<para>Since we are installing the binaries in <filename>/usr/sbin</filename>
|
|
|
|
rather than creating a non-standard <filename>/command</filename> directory,
|
|
|
|
several paths have to be changed:</para>
|
|
|
|
<screen><command>sed 's|command|usr/sbin|' boot.inittab > boot.inittab~
|
|
|
|
mv boot.inittab~ boot.inittab</command></screen>
|
2003-04-12 09:58:10 +08:00
|
|
|
<para>In <filename>boot.inittab</filename>,
|
|
|
|
<filename>/command/svscanboot</filename> is changed to
|
|
|
|
<filename>/usr/sbin/svscanboot</filename>.</para>
|
2003-03-02 23:40:15 +08:00
|
|
|
|
2003-09-26 07:39:56 +08:00
|
|
|
<screen><command>sed -e 's|/command:/usr/local/bin:/usr/local/sbin:||' \
|
|
|
|
-e 's|command|usr/sbin|' \
|
|
|
|
-e 's|/service|/etc/service|g' svscanboot > svscanboot~ &&</command></screen>
|
2003-09-26 10:04:06 +08:00
|
|
|
<para>Here various paths are adjusted in the <command>svscanboot</command>
|
|
|
|
script. In our setup <command>svscan</command> will check the
|
|
|
|
<filename>/etc/service</filename> directory instead of
|
2003-09-26 07:39:56 +08:00
|
|
|
the <filename>/service</filename> directory for daemons to run.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-10-03 06:40:45 +08:00
|
|
|
<para><command>cp * /usr/sbin</command>: We must manually copy the
|
2003-04-12 09:58:10 +08:00
|
|
|
binaries to the <filename>/usr/sbin</filename> directory.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-09-26 07:39:56 +08:00
|
|
|
<para><screen><command>cat /etc/inittab boot.inittab > /etc/inittab~
|
|
|
|
mv -f /etc/inittab~ /etc/inittab</command></screen>
|
|
|
|
These commands append a line to <filename>/etc/inittab</filename> so that
|
|
|
|
<command>init</command> will launch the <command>svscanboot</command> script.
|
|
|
|
</para>
|
2003-03-02 23:40:15 +08:00
|
|
|
|
2003-10-03 06:40:45 +08:00
|
|
|
<para><command>mkdir /etc/service</command>: This command creates
|
2003-09-26 10:04:06 +08:00
|
|
|
the <application>daemontools</application> control directory, which - even if
|
|
|
|
empty - needs to exist for
|
2003-09-26 07:39:56 +08:00
|
|
|
<application>daemontools</application> to run properly.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-10-03 06:40:45 +08:00
|
|
|
<para><command>telinit Q</command>: This command tells the <command>init
|
2003-09-26 07:39:56 +08:00
|
|
|
</command> process to re-read its configuration file
|
|
|
|
(<filename>inittab</filename>) and act upon any changes that have been made.
|
|
|
|
The <command>svscanboot</command> script is started.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|