source: BOOK/boot/common/sysvinit.xml@ ae26c99b

sysvinit
Last change on this file since ae26c99b was 3bffddc0, checked in by Chris Staub <chris@…>, 10 years ago

Updated index references in boot section

  • Property mode set to 100644
File size: 4.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
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 <secondary>boot</secondary>
16 </indexterm>
17
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>
25
26 <sect2 role="installation">
27 <title>Installation of Sysvinit</title>
28
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>
32
33<screen os="p2"><userinput>patch -Np1 -i ../sysvinit-&sysvinit-version;-tools_updates-1.patch</userinput></screen>
34
35 <para os ="c">Compile the package:</para>
36
37<screen os="ac"><userinput>make -C src clobber
38make -C src CC="${CC}"</userinput></screen>
39
40 <para os="e">Install the package:</para>
41
42<screen os="ad"><userinput>make -C src ROOT=/tools install</userinput></screen>
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>
51 <secondary>boot, configuring</secondary>
52 </indexterm>
53
54 <indexterm zone="conf-tools-sysvinit">
55 <primary sortas="e-/etc/inittab">/etc/inittab</primary>
56 </indexterm>
57
58 <para>Create a new file <filename>/tools/etc/inittab</filename> by running the
59 following:</para>
60
61<screen><userinput>cat &gt; /tools/etc/inittab &lt;&lt; "EOF"
62<literal># Begin /tools/etc/inittab
63
64id:3:initdefault:
65
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
75
76ca:12345:ctrlaltdel:/tools/sbin/shutdown -t1 -a -r now
77
78su:S016:once:/tools/sbin/sulogin
79</literal>
80EOF</userinput></screen>
81
82 <para>The following command adds the standard virtual terminals to
83 <filename>/tools/etc/inittab</filename>. If your system only has a serial
84 console skip the following command:</para>
85
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
93</literal>
94EOF</userinput></screen>
95
96 <para>If your system has a serial console, run the following command to add
97 the entry to <filename>/tools/etc/inittab</filename>.</para>
98
99<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
100<literal>c0:12345:respawn:/tools/sbin/agetty --noclear 115200 ttyS0 vt100
101</literal>
102EOF</userinput></screen>
103
104 <para>Finally, add the end line to <filename>/tools/etc/inittab</filename>.</para>
105
106<screen><userinput>cat &gt;&gt; /tools/etc/inittab &lt;&lt; "EOF"
107<literal># End /tools/etc/inittab</literal>
108EOF</userinput></screen>
109
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
114 the <command>setfont</command> program. Sending this
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
120 <sect2 role="content">
121 <title/>
122
123 <para>Details on this package are located in <xref
124 linkend="contents-sysvinit" role="."/></para>
125
126 </sect2>
127
128</sect1>
Note: See TracBrowser for help on using the repository browser.