1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-sysvinit" role="wrap">
|
---|
9 | <?dbhtml filename="sysvinit.html"?>
|
---|
10 |
|
---|
11 | <title>Sysvinit-&sysvinit-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-sysvinit">
|
---|
14 | <primary sortas="a-Sysvinit">Sysvinit</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
18 | href="../common/sysvinit.xml"
|
---|
19 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
20 |
|
---|
21 | <sect2 role="installation">
|
---|
22 | <title>Installation of Sysvinit</title>
|
---|
23 |
|
---|
24 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
25 | href="../common/sysvinit.xml"
|
---|
26 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
27 |
|
---|
28 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
29 | href="../common/sysvinit.xml"
|
---|
30 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
31 |
|
---|
32 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
33 | href="../common/sysvinit.xml"
|
---|
34 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
35 |
|
---|
36 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
37 | href="../common/sysvinit.xml"
|
---|
38 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
39 |
|
---|
40 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
41 | href="../common/sysvinit.xml"
|
---|
42 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
43 |
|
---|
44 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
45 | href="../common/sysvinit.xml"
|
---|
46 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
47 |
|
---|
48 | </sect2>
|
---|
49 |
|
---|
50 | <sect2 id="conf-sysvinit" role="configuration">
|
---|
51 | <title>Configuring Sysvinit</title>
|
---|
52 |
|
---|
53 | <indexterm zone="conf-sysvinit">
|
---|
54 | <primary sortas="a-Sysvinit">Sysvinit</primary>
|
---|
55 | <secondary>configuring</secondary>
|
---|
56 | </indexterm>
|
---|
57 |
|
---|
58 | <indexterm zone="conf-sysvinit">
|
---|
59 | <primary sortas="e-/etc/inittab">/etc/inittab</primary>
|
---|
60 | </indexterm>
|
---|
61 |
|
---|
62 | <para>Create a new file <filename>/etc/inittab</filename> by running
|
---|
63 | the following:</para>
|
---|
64 |
|
---|
65 | <screen><userinput>cat > /etc/inittab << "EOF"
|
---|
66 | <literal># Begin /etc/inittab
|
---|
67 |
|
---|
68 | id:3:initdefault:
|
---|
69 |
|
---|
70 | si::sysinit:/etc/rc.d/init.d/rc sysinit
|
---|
71 |
|
---|
72 | l0:0:wait:/etc/rc.d/init.d/rc 0
|
---|
73 | l1:S1:wait:/etc/rc.d/init.d/rc 1
|
---|
74 | l2:2:wait:/etc/rc.d/init.d/rc 2
|
---|
75 | l3:3:wait:/etc/rc.d/init.d/rc 3
|
---|
76 | l4:4:wait:/etc/rc.d/init.d/rc 4
|
---|
77 | l5:5:wait:/etc/rc.d/init.d/rc 5
|
---|
78 | l6:6:wait:/etc/rc.d/init.d/rc 6
|
---|
79 |
|
---|
80 | ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
|
---|
81 |
|
---|
82 | su:S016:once:/sbin/sulogin
|
---|
83 |
|
---|
84 | # Remove this section if you System only
|
---|
85 | # has a console port
|
---|
86 | 1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
|
---|
87 | 2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
|
---|
88 | 3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
|
---|
89 | 4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
|
---|
90 | 5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
|
---|
91 | 6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
|
---|
92 |
|
---|
93 | # Uncomment this section if your system has a console
|
---|
94 | # port
|
---|
95 | #c0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
|
---|
96 |
|
---|
97 | # End /etc/inittab</literal>
|
---|
98 | EOF</userinput></screen>
|
---|
99 |
|
---|
100 | </sect2>
|
---|
101 |
|
---|
102 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
103 | href="../common/sysvinit.xml"
|
---|
104 | xpointer="xpointer(id('contents-sysvinit'))"/>
|
---|
105 |
|
---|
106 | </sect1>
|
---|