Ignore:
Timestamp:
12/21/2004 07:38:32 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
3d36131c
Parents:
aaa3260
Message:

Removed the text in chapter 06.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4446 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/sysvinit.xml

    raaa3260 r3f0c882  
    2929<title>Installation of Sysvinit</title>
    3030
    31 <para>When run-levels are changed (for example, when halting the system),
    32 <command>init</command> sends termination signals to those processes that
    33 <command>init</command> itself started and that shouldn't be running in the new
    34 run-level. While doing this, <command>init</command> outputs messages like
    35 <quote>Sending processes the TERM signal</quote> which seem to imply that it is sending these signals to all currently running processes. To avoid this
    36 misinterpretation, you can modify the source so that these messages read like
    37 <quote>Sending processes started by init the TERM signal</quote> instead:</para>
     31<para>Issue a sed sustitution:</para>
    3832
    3933<screen><userinput>sed -i 's@Sending processes@&amp; started by init@g' \
     
    5246
    5347<sect2 id="conf-sysvinit" role="configuration"><title>Configuring Sysvinit</title>
    54 <indexterm zone="conf-sysvinit">
    55 <primary sortas="a-Sysvinit">Sysvinit</primary>
    56 <secondary>configuring</secondary></indexterm>
    5748
    58 <indexterm zone="conf-sysvinit"><primary sortas="e-/etc/inittab">/etc/inittab</primary></indexterm>
    59 
    60 <para>Create a new <filename>/etc/inittab</filename> file by running the
    61 following:</para>
     49<para>Create a <filename>/etc/inittab</filename> file:</para>
    6250
    6351<screen><userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"
     
    9078EOF</userinput></screen>
    9179
    92 <para> The <parameter>-I '\033(K'</parameter> switch tells <command>agetty</command> to send this escape sequence to
    93 the terminal before doing anything else. This escape sequence switches the
    94 console character set to a user-defined one, which can be modified by
    95 running the <command>setfont</command> program.
    96 Actually, the <command>console</command> initscript from the LFS-Bootscripts
    97 package calls the <command>setfont</command> program during system
    98 startup. Sending this escape sequence is necessary for
    99 people who use non-ISO-8859-1 screen font, but does not hurt native English
    100 speakers.</para>
    101 
    10280</sect2>
    10381
     
    10583<sect2 id="contents-sysvinit" role="content"><title>Contents of Sysvinit</title>
    10684
    107 <segmentedlist>
    108 <segtitle>Installed programs</segtitle>
    109 <seglistitem><seg>halt, init, killall5, last, lastb (link to last), mesg, pidof (link to
    110 killall5), poweroff (link to halt), reboot (link to halt), runlevel, shutdown, sulogin, telinit
    111 (link to init), utmpdump and wall</seg></seglistitem>
    112 </segmentedlist>
     85<para>See testing</para>
    11386
    114 <variablelist><title>Short descriptions</title>
    115 
    116 <varlistentry id="halt">
    117 <term><command>halt</command></term>
    118 <listitem>
    119 <indexterm zone="ch-system-sysvinit halt"><primary sortas="b-halt">halt</primary></indexterm>
    120 <para>normally invokes <command>shutdown</command> with the <parameter>-h</parameter> flag,
    121 except when already in run-level 0, then it tells the kernel to halt the system.
    122 But first it notes in the file <filename>/var/log/wtmp</filename> that the
    123 system is being brought down.</para>
    124 </listitem>
    125 </varlistentry>
    126 
    127 <varlistentry id="init">
    128 <term><command>init</command></term>
    129 <listitem>
    130 <indexterm zone="ch-system-sysvinit init"><primary sortas="b-init">init</primary></indexterm>
    131 <para>is the mother of all processes. It reads its
    132 commands from <filename>/etc/inittab</filename>, which normally tell it which
    133 scripts to run for which run-level, and how many gettys to spawn.</para>
    134 </listitem>
    135 </varlistentry>
    136 
    137 <varlistentry id="killall5">
    138 <term><command>killall5</command></term>
    139 <listitem>
    140 <indexterm zone="ch-system-sysvinit killall5"><primary sortas="b-killall5">killall5</primary></indexterm>
    141 <para>sends a signal to all processes, except the processes in its own session --
    142 so it won't kill the shell running the script that called it.</para>
    143 </listitem>
    144 </varlistentry>
    145 
    146 <varlistentry id="last">
    147 <term><command>last</command></term>
    148 <listitem>
    149 <indexterm zone="ch-system-sysvinit last"><primary sortas="b-last">last</primary></indexterm>
    150 <para>shows which users last logged in (and out),
    151 searching back through the file <filename>/var/log/wtmp</filename>. It can
    152 also show system boots and shutdowns, and run-level changes.</para>
    153 </listitem>
    154 </varlistentry>
    155 
    156 <varlistentry id="lastb">
    157 <term><command>lastb</command></term>
    158 <listitem>
    159 <indexterm zone="ch-system-sysvinit lastb"><primary sortas="b-lastb">lastb</primary></indexterm>
    160 <para>shows the failed login attempts, as logged in
    161 <filename>/var/log/btmp</filename>.</para>
    162 </listitem>
    163 </varlistentry>
    164 
    165 <varlistentry id="mesg">
    166 <term><command>mesg</command></term>
    167 <listitem>
    168 <indexterm zone="ch-system-sysvinit mesg"><primary sortas="b-mesg">mesg</primary></indexterm>
    169 <para>controls whether other users can send
    170 messages to the current user's terminal.</para>
    171 </listitem>
    172 </varlistentry>
     87<!-- This should be added to testing:
    17388
    17489<varlistentry id="mountpoint">
    17590<term><command>mountpoint</command></term>
    17691<listitem>
     92<para>Checks if the directory is a mountpoint</para>
    17793<indexterm zone="ch-system-sysvinit mountpoint"><primary sortas="b-mountpoint">mountpoint</primary></indexterm>
    178 <para>checks if the directory is a mountpoint.</para>
    17994</listitem>
    18095</varlistentry>
    18196
    182 <varlistentry id="pidof">
    183 <term><command>pidof</command></term>
    184 <listitem>
    185 <indexterm zone="ch-system-sysvinit pidof"><primary sortas="b-pidof">pidof</primary></indexterm>
    186 <para>reports the PIDs of the given programs.</para>
    187 </listitem>
    188 </varlistentry>
    189 
    190 <varlistentry id="poweroff">
    191 <term><command>poweroff</command></term>
    192 <listitem>
    193 <indexterm zone="ch-system-sysvinit poweroff"><primary sortas="b-poweroff">poweroff</primary></indexterm>
    194 <para>tells the kernel to halt the system and
    195 switch off the computer. But see <command>halt</command>.</para>
    196 </listitem>
    197 </varlistentry>
    198 
    199 <varlistentry id="reboot">
    200 <term><command>reboot</command></term>
    201 <listitem>
    202 <indexterm zone="ch-system-sysvinit reboot"><primary sortas="b-reboot">reboot</primary></indexterm>
    203 <para>tells the kernel to reboot the system. But see <command>halt</command>.</para>
    204 </listitem>
    205 </varlistentry>
    206 
    207 <varlistentry id="runlevel">
    208 <term><command>runlevel</command></term>
    209 <listitem>
    210 <indexterm zone="ch-system-sysvinit runlevel"><primary sortas="b-runlevel">runlevel</primary></indexterm>
    211 <para>reports the previous and the current run-level, as noted in the last run-level
    212 record in <filename>/var/run/utmp</filename>.</para>
    213 </listitem>
    214 </varlistentry>
    215 
    216 <varlistentry id="shutdown">
    217 <term><command>shutdown</command></term>
    218 <listitem>
    219 <indexterm zone="ch-system-sysvinit shutdown"><primary sortas="b-shutdown">shutdown</primary></indexterm>
    220 <para>brings the system down in a secure way,
    221 signaling all processes and notifying all logged-in users.</para>
    222 </listitem>
    223 </varlistentry>
    224 
    225 <varlistentry id="sulogin">
    226 <term><command>sulogin</command></term>
    227 <listitem>
    228 <indexterm zone="ch-system-sysvinit sulogin"><primary sortas="b-sulogin">sulogin</primary></indexterm>
    229 <para>allows the superuser to log in. It is
    230 normally invoked by <command>init</command> when the system goes into single user mode.</para>
    231 </listitem>
    232 </varlistentry>
    233 
    234 <varlistentry id="telinit">
    235 <term><command>telinit</command></term>
    236 <listitem>
    237 <indexterm zone="ch-system-sysvinit telinit"><primary sortas="b-telinit">telinit</primary></indexterm>
    238 <para>tells <command>init</command> which run-level to enter.</para>
    239 </listitem>
    240 </varlistentry>
    241 
    242 <varlistentry id="utmpdump">
    243 <term><command>utmpdump</command></term>
    244 <listitem>
    245 <indexterm zone="ch-system-sysvinit utmpdump"><primary sortas="b-utmpdump">utmpdump</primary></indexterm>
    246 <para>displays the content of the given login file in a friendlier format.</para>
    247 </listitem>
    248 </varlistentry>
    249 
    250 <varlistentry id="wall">
    251 <term><command>wall</command></term>
    252 <listitem>
    253 <indexterm zone="ch-system-sysvinit wall"><primary sortas="b-wall">wall</primary></indexterm>
    254 <para>writes a message to all logged-in users.</para>
    255 </listitem>
    256 </varlistentry>
    257 </variablelist>
     97-->
    25898
    25999</sect2>
Note: See TracChangeset for help on using the changeset viewer.