Ignore:
Timestamp:
Dec 18, 2013, 1:04:00 AM (11 years ago)
Author:
Chris Staub <chris@…>
Children:
f975b3a
Parents:
1c9985f (diff), 8abef998 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Updated simp branch to match main book

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/sysvinit.xml

    r1c9985f r026bb5d  
    2525    <title>Installation of Sysvinit</title>
    2626
    27     <para os="c">Compile the package:</para>
     27<para os ="a">Apply a sed which disables last, mesg, mountpoint, sulogin,
     28utmpdump, and wall from being built and installed as they are provided by
     29Util-linux:</para>
     30
     31<screen os="b"><userinput>sed -i -e 's/\ sulogin[^ ]*//' \
     32    -e '/utmpdump/d' -e '/mountpoint/d' -e '/mesg/d' src/Makefile</userinput></screen>
     33
     34<para os ="c">Compile the package:</para>
    2835
    2936<screen os="d"><userinput>make -C src clobber
     
    7683
    7784<screen><userinput>cat &gt;&gt; /etc/inittab &lt;&lt; "EOF"
    78 <literal>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
    79 2:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
    80 3:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
    81 4:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
    82 5:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
    83 6:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
     85<literal>1:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty1 9600
     862:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty2 9600
     873:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty3 9600
     884:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty4 9600
     895:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty5 9600
     906:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty6 9600
    8491</literal>
    8592EOF</userinput></screen>
     
    8996
    9097<screen><userinput>cat &gt;&gt; /etc/inittab &lt;&lt; "EOF"
    91 <literal>c0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
     98<literal>c0:12345:respawn:/sbin/agetty --noclear 115200 ttyS0 vt100
    9299</literal>
    93100EOF</userinput></screen>
     
    118125
    119126      <seglistitem>
    120         <seg>bootlogd, halt, init, killall5, last, lastb (link to last), mesg,
    121         mountpoint, pidof (link to killall5), poweroff (link to halt),
    122         reboot (link to halt), runlevel, shutdown, sulogin,
    123         telinit (link to init), utmpdump, and wall</seg>
     127        <seg>bootlogd, fstab-decode, halt, init, killall5, pidof (link to
     128        killall5), poweroff (link to halt), reboot (link to halt), runlevel,
     129        shutdown, and telinit (link to init)</seg>
    124130      </seglistitem>
    125131    </segmentedlist>
     
    136142          <indexterm zone="ch-system-sysvinit bootlogd">
    137143            <primary sortas="b-bootlogd">bootlogd</primary>
     144          </indexterm>
     145        </listitem>
     146      </varlistentry>
     147
     148      <varlistentry id="fstab-decode">
     149        <term><command>fstab-decode</command></term>
     150        <listitem>
     151          <para>Runs a command with fstab-encoded arguments</para>
     152          <indexterm zone="ch-system-sysvinit fstab-decode">
     153            <primary sortas="b-fstab-decode">fstab-decode</primary>
    138154          </indexterm>
    139155        </listitem>
     
    178194      </varlistentry>
    179195
    180       <varlistentry id="last">
    181         <term><command>last</command></term>
    182         <listitem>
    183           <para>Shows which users last logged in (and out), searching back
    184           through the <filename>/var/log/wtmp</filename> file; it also shows
    185           system boots, shutdowns, and run-level changes</para>
    186           <indexterm zone="ch-system-sysvinit last">
    187             <primary sortas="b-last">last</primary>
    188           </indexterm>
    189         </listitem>
    190       </varlistentry>
    191 
    192       <varlistentry id="lastb">
    193         <term><command>lastb</command></term>
    194         <listitem>
    195           <para>Shows the failed login attempts, as logged in
    196           <filename>/var/log/btmp</filename></para>
    197           <indexterm zone="ch-system-sysvinit lastb">
    198             <primary sortas="b-lastb">lastb</primary>
    199           </indexterm>
    200         </listitem>
    201       </varlistentry>
    202 
    203       <varlistentry id="mesg">
    204         <term><command>mesg</command></term>
    205         <listitem>
    206           <para>Controls whether other users can send messages to the current
    207           user's terminal</para>
    208           <indexterm zone="ch-system-sysvinit mesg">
    209             <primary sortas="b-mesg">mesg</primary>
    210           </indexterm>
    211         </listitem>
    212       </varlistentry>
    213 
    214       <varlistentry id="mountpoint">
    215         <term><command>mountpoint</command></term>
    216         <listitem>
    217           <para>Tells you whether or not a directory is a mount point.</para>
    218           <indexterm zone="ch-system-sysvinit mountpoint">
    219             <primary sortas="b-mountpoint">mountpoint</primary>
    220           </indexterm>
    221         </listitem>
    222       </varlistentry>
    223 
    224196      <varlistentry id="pidof">
    225197        <term><command>pidof</command></term>
     
    276248      </varlistentry>
    277249
    278       <varlistentry id="sulogin">
    279         <term><command>sulogin</command></term>
    280         <listitem>
    281           <para>Allows <emphasis>root</emphasis> to log in; it is normally
    282           invoked by <command>init</command> when the system goes into single
    283           user mode</para>
    284           <indexterm zone="ch-system-sysvinit sulogin">
    285             <primary sortas="b-sulogin">sulogin</primary>
    286           </indexterm>
    287         </listitem>
    288       </varlistentry>
    289 
    290250      <varlistentry id="telinit">
    291251        <term><command>telinit</command></term>
     
    298258      </varlistentry>
    299259
    300       <varlistentry id="utmpdump">
    301         <term><command>utmpdump</command></term>
    302         <listitem>
    303           <para>Displays the content of the given login file in a more
    304           user-friendly format</para>
    305           <indexterm zone="ch-system-sysvinit utmpdump">
    306             <primary sortas="b-utmpdump">utmpdump</primary>
    307           </indexterm>
    308         </listitem>
    309       </varlistentry>
    310 
    311       <varlistentry id="wall">
    312         <term><command>wall</command></term>
    313         <listitem>
    314           <para>Writes a message to all logged-in users</para>
    315           <indexterm zone="ch-system-sysvinit wall">
    316             <primary sortas="b-wall">wall</primary>
    317           </indexterm>
    318         </listitem>
    319       </varlistentry>
    320 
    321260    </variablelist>
    322261
Note: See TracChangeset for help on using the changeset viewer.