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-03-02 23:40:15 +08:00
|
|
|
this includes qmail, djbdns and ucspi-tcp in addition to daemontools, is
|
2002-07-08 04:28:42 +08:00
|
|
|
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>
|
|
|
|
|
|
|
|
<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
|
|
|
|
that is compliant with the Filesystem Hierarchy Standard (FHS). Most of
|
|
|
|
the following commands are due to this difficulty.</para>
|
|
|
|
|
2003-04-06 02:00:27 +08:00
|
|
|
<para><userinput>cd admin/daemontools-0.76</userinput> : First off, the
|
2002-07-08 04:28:42 +08:00
|
|
|
package is unpacked in an "admin" directory. You will find the actual
|
|
|
|
packages two directory levels below this.</para>
|
|
|
|
|
2003-04-06 02:00:27 +08:00
|
|
|
<para><userinput>package/compile</userinput> : This command actually
|
2002-07-08 04:28:42 +08:00
|
|
|
compiles the source and puts the binaries in a command directory.</para>
|
|
|
|
|
2003-03-02 23:40:15 +08:00
|
|
|
<para>Since we are installing the binaries in /usr/sbin rather than creating
|
|
|
|
a non-standard /command directory, several paths have to be changed:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
<para><screen><userinput>sed 's|command|usr/sbin|' boot.inittab > boot.inittab~</userinput>
|
|
|
|
<userinput>mv boot.inittab~ boot.inittab</userinput></screen></para>
|
2003-03-02 23:40:15 +08:00
|
|
|
<para>In boot.inittab, /command/svscanboot is changed to /usr/sbin/svscanboot.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>sed -e 's|/command:/usr/local/bin:/usr/local/sbin:||' \</userinput>
|
|
|
|
<userinput> -e 's|command|usr/sbin|' \</userinput>
|
|
|
|
<userinput> -e 's|/service|/etc/service|g' svscanboot > svscanboot~ &&</userinput></screen></para>
|
|
|
|
<para>Here various paths are adjusted in the svscanboot script. In our setup svscan
|
|
|
|
will check the /etc/service directory instead of the /service directory for
|
|
|
|
daemons to run.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-04-06 02:00:27 +08:00
|
|
|
<para><userinput>cp * /usr/sbin</userinput> : We must manually copy the
|
2002-07-08 04:28:42 +08:00
|
|
|
binaries to the /usr/sbin directory.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cat /etc/inittab boot.inittab > /etc/inittab~</userinput>
|
2003-04-06 02:00:27 +08:00
|
|
|
<userinput>mv -f /etc/inittab~ /etc/inittab</userinput></screen>
|
|
|
|
These commands append a line to /etc/inittab so that init will launch
|
2003-03-02 23:40:15 +08:00
|
|
|
the svscanboot script.</para>
|
|
|
|
|
2003-04-06 02:00:27 +08:00
|
|
|
<para><userinput>mkdir /etc/service</userinput> : This command creates
|
2003-03-02 23:40:15 +08:00
|
|
|
the daemontools control directory, which - even if empty - needs to exist for
|
|
|
|
daemontools to run properly.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-04-06 02:00:27 +08:00
|
|
|
<para><userinput>telinit Q</userinput> : This command tells the init
|
2002-07-08 04:28:42 +08:00
|
|
|
process to re-read its configuration file (inittab) and act upon any
|
2003-03-02 23:40:15 +08:00
|
|
|
changes that have been made. The svscanboot script is started.</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|