mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 21:17:38 +00:00
3f0c882398
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4446 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
102 lines
2.7 KiB
XML
102 lines
2.7 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
%general-entities;
|
|
]>
|
|
<sect1 id="ch-system-sysvinit" xreflabel="Sysvinit" role="wrap">
|
|
<title>Sysvinit-&sysvinit-version;</title>
|
|
<?dbhtml filename="sysvinit.html"?>
|
|
|
|
<indexterm zone="ch-system-sysvinit"><primary sortas="a-Sysvinit">Sysvinit</primary></indexterm>
|
|
|
|
<sect2 role="package"><title/>
|
|
<para>The Sysvinit package contains programs for controlling the startup,
|
|
running, and shutdown of your system.</para>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
<seglistitem><seg>0.1 SBU</seg><seg> 0.9 MB</seg></seglistitem>
|
|
</segmentedlist>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Sysvinit installation depends on</segtitle>
|
|
<seglistitem><seg>Binutils, Coreutils, GCC, Glibc, Make</seg></seglistitem>
|
|
</segmentedlist>
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Sysvinit</title>
|
|
|
|
<para>Issue a sed sustitution:</para>
|
|
|
|
<screen><userinput>sed -i 's@Sending processes@& started by init@g' \
|
|
src/init.c</userinput></screen>
|
|
|
|
<para>Compile Sysvinit:</para>
|
|
|
|
<screen><userinput>make -C src</userinput></screen>
|
|
|
|
<para>Then install it:</para>
|
|
|
|
<screen><userinput>make -C src install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="conf-sysvinit" role="configuration"><title>Configuring Sysvinit</title>
|
|
|
|
<para>Create a <filename>/etc/inittab</filename> file:</para>
|
|
|
|
<screen><userinput>cat > /etc/inittab << "EOF"
|
|
# Begin /etc/inittab
|
|
|
|
id:3:initdefault:
|
|
|
|
si::sysinit:/etc/rc.d/init.d/rc sysinit
|
|
|
|
l0:0:wait:/etc/rc.d/init.d/rc 0
|
|
l1:S1:wait:/etc/rc.d/init.d/rc 1
|
|
l2:2:wait:/etc/rc.d/init.d/rc 2
|
|
l3:3:wait:/etc/rc.d/init.d/rc 3
|
|
l4:4:wait:/etc/rc.d/init.d/rc 4
|
|
l5:5:wait:/etc/rc.d/init.d/rc 5
|
|
l6:6:wait:/etc/rc.d/init.d/rc 6
|
|
|
|
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
|
|
|
|
su:S016:once:/sbin/sulogin
|
|
|
|
1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
|
|
2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
|
|
3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
|
|
4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
|
|
5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
|
|
6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
|
|
|
|
# End /etc/inittab
|
|
EOF</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="contents-sysvinit" role="content"><title>Contents of Sysvinit</title>
|
|
|
|
<para>See testing</para>
|
|
|
|
<!-- This should be added to testing:
|
|
|
|
<varlistentry id="mountpoint">
|
|
<term><command>mountpoint</command></term>
|
|
<listitem>
|
|
<para>Checks if the directory is a mountpoint</para>
|
|
<indexterm zone="ch-system-sysvinit mountpoint"><primary sortas="b-mountpoint">mountpoint</primary></indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
-->
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|