Changed sulogin's respawn in inittab to 'once'
[linux_from_scratch.git] / BOOK / chapter06 / config-sysvinit.xml
blobbea7a280614ae4224203e6f1485e3c3fac67e214
1 <sect2><title>Configuring Sysvinit</title>
3 <para>Create a new file <filename>/etc/inittab</filename> by running the
4 following:</para>
6 <para><screen><userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"</userinput>
7 # Begin /etc/inittab
9 id:3:initdefault:
11 si::sysinit:/etc/rc.d/init.d/rc sysinit
13 l0:0:wait:/etc/rc.d/init.d/rc 0
14 l1:S1:wait:/etc/rc.d/init.d/rc 1
15 l2:2:wait:/etc/rc.d/init.d/rc 2
16 l3:3:wait:/etc/rc.d/init.d/rc 3
17 l4:4:wait:/etc/rc.d/init.d/rc 4
18 l5:5:wait:/etc/rc.d/init.d/rc 5
19 l6:6:wait:/etc/rc.d/init.d/rc 6
21 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
23 su:S016:once:/sbin/sulogin
25 1:2345:respawn:/sbin/agetty tty1 9600
26 2:2345:respawn:/sbin/agetty tty2 9600
27 3:2345:respawn:/sbin/agetty tty3 9600
28 4:2345:respawn:/sbin/agetty tty4 9600
29 5:2345:respawn:/sbin/agetty tty5 9600
30 6:2345:respawn:/sbin/agetty tty6 9600
32 # End /etc/inittab
33 <userinput>EOF</userinput></screen></para>
35 </sect2>