source: BOOK/boot/common/sysvinit.xml@ 6b82ace

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 6b82ace was 82fc053, checked in by Chris Staub <chris@…>, 11 years ago

Created sysvinit branch

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-boot-sysvinit" role="wrap">
9 <?dbhtml filename="sysvinit.html"?>
10
11 <title>Sysvinit-&sysvinit-version;</title>
12
13 <indexterm zone="ch-boot-sysvinit">
14 <primary sortas="a-Sysvinit">Sysvinit</primary>
15 </indexterm>
16
[d5f948c]17 <sect2 role="package">
18 <title/>
19
20 <para>The Sysvinit package contains programs for controlling the startup,
21 running, and shutdown of the system.</para>
22
23 </sect2>
[3f8be484]24
25 <sect2 role="installation">
26 <title>Installation of Sysvinit</title>
27
[3f2219e]28 <para os="p1">Apply a patch to prevent installation of unneeded programs,
29 and allow Sysvinit to be installed in
30 <filename class="directory">/tools</filename>:</para>
[1425d8c]31
[3f2219e]32<screen os="p2"><userinput>patch -Np1 -i ../sysvinit-&sysvinit-version;-tools_updates-1.patch</userinput></screen>
[dbc8e54]33
[d5f948c]34 <para os ="c">Compile the package:</para>
[3f8be484]35
36<screen os="ac"><userinput>make -C src clobber
37make -C src CC="${CC}"</userinput></screen>
38
[d5f948c]39 <para os="e">Install the package:</para>
[3f8be484]40
[d2ecc65]41<screen os="ad"><userinput>make -C src ROOT=/tools install</userinput></screen>
[3f8be484]42
43 </sect2>
44
45 <sect2 id="conf-tools-sysvinit" role="configuration">
46 <title>Configuring Sysvinit</title>
47
48 <indexterm zone="conf-tools-sysvinit">
49 <primary sortas="a-Sysvinit">Sysvinit</primary>
[37ee606e]50 <secondary>configuring</secondary>
[3f8be484]51 </indexterm>
52
53 <indexterm zone="conf-tools-sysvinit">
[91ad4a4]54 <primary sortas="e-/etc/inittab">/etc/inittab</primary>
[3f8be484]55 </indexterm>
56
[dbc8e54]57 <para>Create a new file <filename>/tools/etc/inittab</filename> by running the
[1da2a84]58 following:</para>
[3f8be484]59
[dbc8e54]60<screen><userinput>cat &gt; /tools/etc/inittab &lt;&lt; "EOF"
61<literal># Begin /tools/etc/inittab
[3f8be484]62
63id:3:initdefault:
64
[54b143f]65si::sysinit:/tools/etc/rc.d/init.d/rc sysinit
66
67l0:0:wait:/tools/etc/rc.d/init.d/rc 0
68l1:S1:wait:/tools/etc/rc.d/init.d/rc 1
69l2:2:wait:/tools/etc/rc.d/init.d/rc 2
70l3:3:wait:/tools/etc/rc.d/init.d/rc 3
71l4:4:wait:/tools/etc/rc.d/init.d/rc 4
72l5:5:wait:/tools/etc/rc.d/init.d/rc 5
73l6:6:wait:/tools/etc/rc.d/init.d/rc 6
[3f8be484]74
[3832b71]75ca:12345:ctrlaltdel:/tools/sbin/shutdown -t1 -a -r now
[3f8be484]76
[dbc8e54]77su:S016:once:/tools/sbin/sulogin
[1da2a84]78</literal>
79EOF</userinput></screen>
80
81 <para>The following command adds the standard virtual terminals to
[dbc8e54]82 <filename>/tools/etc/inittab</filename>. If your system only has a serial
[1da2a84]83 console skip the following command:</para>
[3f8be484]84
[dbc8e54]85<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
86<literal>1:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty1 9600
872:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty2 9600
883:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty3 9600
894:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty4 9600
905:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty5 9600
916:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty6 9600
[1da2a84]92</literal>
93EOF</userinput></screen>
94
[d1ff581]95 <para>If your system has a serial console, run the following command to add
[dbc8e54]96 the entry to <filename>/tools/etc/inittab</filename>.</para>
[1da2a84]97
[dbc8e54]98<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
99<literal>c0:12345:respawn:/tools/sbin/agetty --noclear 115200 ttyS0 vt100
[1da2a84]100</literal>
101EOF</userinput></screen>
102
[dbc8e54]103 <para>Finally, add the end line to <filename>/tools/etc/inittab</filename>.</para>
[3f8be484]104
[dbc8e54]105<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
106<literal># End /tools/etc/inittab</literal>
[3f8be484]107EOF</userinput></screen>
108
[d5f948c]109 <para>The <parameter>-I '\033(K'</parameter> option tells
110 <command>agetty</command> to send this escape sequence to the terminal
111 before doing anything else. This escape sequence switches the console
112 character set to a user-defined one, which can be modified by running
[d4d71d1]113 the <command>setfont</command> program. Sending this
[d5f948c]114 escape sequence is necessary for people who use non-ISO 8859-1 screen
115 fonts, but it does not affect native English speakers.</para>
116
117 </sect2>
118
[82fc053]119 <sect2 role="content">
120 <title/>
121
122 <para>Details on this package are located in <xref
123 linkend="contents-sysvinit" role="."/></para>
[d5f948c]124
[3f8be484]125 </sect2>
126
127</sect1>
Note: See TracBrowser for help on using the repository browser.