source: BOOK/boot/common/sysvinit.xml@ 6950fcb

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 6950fcb was 3bffddc0, checked in by Chris Staub <chris@…>, 11 years ago

Updated index references in boot section

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