diff options
Diffstat (limited to 'chapter06/config-sysvinit.xml')
-rw-r--r-- | chapter06/config-sysvinit.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/chapter06/config-sysvinit.xml b/chapter06/config-sysvinit.xml new file mode 100644 index 000000000..ada018f9d --- /dev/null +++ b/chapter06/config-sysvinit.xml @@ -0,0 +1,43 @@ +<sect2><title>Configuring Sysvinit</title> + +<para> +Create a new file <filename>/etc/inittab</filename> by running the +following: +</para> + +<literallayout> + +<userinput>cat > /etc/inittab << "EOF"</userinput> +# 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 + +ft:06:respawn:/sbin/sulogin + +ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now + +su:S1:respawn:/sbin/sulogin +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 +<userinput>EOF</userinput> + +</literallayout> + +</sect2> + |