2001-01-24 00:31:17 +00:00
|
|
|
<sect2><title>Configuring Sysvinit</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Create a new file <filename>/etc/inittab</filename> by running the
|
|
|
|
following:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>cat > /etc/inittab << "EOF"</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
# Begin /etc/inittab
|
|
|
|
|
|
|
|
id:3:initdefault:
|
|
|
|
|
|
|
|
si::sysinit:/etc/init.d/rcS
|
|
|
|
|
|
|
|
l0:0:wait:/etc/init.d/rc 0
|
|
|
|
l1:S1:wait:/etc/init.d/rc 1
|
|
|
|
l2:2:wait:/etc/init.d/rc 2
|
|
|
|
l3:3:wait:/etc/init.d/rc 3
|
|
|
|
l4:4:wait:/etc/init.d/rc 4
|
|
|
|
l5:5:wait:/etc/init.d/rc 5
|
|
|
|
l6:6:wait:/etc/init.d/rc 6
|
|
|
|
|
|
|
|
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
|
|
|
|
|
2001-02-23 14:54:34 +00:00
|
|
|
su:S016:respawn:/sbin/sulogin
|
|
|
|
|
2001-01-24 00:31:17 +00:00
|
|
|
1:2345:respawn:/sbin/agetty tty1 9600
|
|
|
|
2:2345:respawn:/sbin/agetty tty2 9600
|
|
|
|
3:2345:respawn:/sbin/agetty tty3 9600
|
|
|
|
4:2345:respawn:/sbin/agetty tty4 9600
|
|
|
|
5:2345:respawn:/sbin/agetty tty5 9600
|
|
|
|
6:2345:respawn:/sbin/agetty tty6 9600
|
|
|
|
|
|
|
|
# End /etc/inittab
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>EOF</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|