Ignore:
File:
1 edited

Legend:

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

    r86e0296 r3b0c31e  
    2525    <title>Installation of Sysvinit</title>
    2626
    27 <para os ="a">Apply a sed which disables last, mesg, mountpoint, sulogin,
    28 utmpdump, and wall from being built and installed as they are provided by
    29 Util-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>
     27    <para os="c">Compile the package:</para>
    3528
    3629<screen os="d"><userinput>make -C src clobber
     
    8376
    8477<screen><userinput>cat &gt;&gt; /etc/inittab &lt;&lt; "EOF"
    85 <literal>1:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty1 9600
    86 2:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty2 9600
    87 3:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty3 9600
    88 4:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty4 9600
    89 5:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty5 9600
    90 6:2345:respawn:/sbin/agetty --noclear -I '\033(K' tty6 9600
     78<literal>1:2345:respawn:/sbin/agetty -I '\033(K' tty1 9600
     792:2345:respawn:/sbin/agetty -I '\033(K' tty2 9600
     803:2345:respawn:/sbin/agetty -I '\033(K' tty3 9600
     814:2345:respawn:/sbin/agetty -I '\033(K' tty4 9600
     825:2345:respawn:/sbin/agetty -I '\033(K' tty5 9600
     836:2345:respawn:/sbin/agetty -I '\033(K' tty6 9600
    9184</literal>
    9285EOF</userinput></screen>
     
    9689
    9790<screen><userinput>cat &gt;&gt; /etc/inittab &lt;&lt; "EOF"
    98 <literal>c0:12345:respawn:/sbin/agetty --noclear 115200 ttyS0 vt100
     91<literal>c0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
    9992</literal>
    10093EOF</userinput></screen>
     
    125118
    126119      <seglistitem>
    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>
     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>
    130124      </seglistitem>
    131125    </segmentedlist>
     
    142136          <indexterm zone="ch-system-sysvinit bootlogd">
    143137            <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>
    154138          </indexterm>
    155139        </listitem>
     
    194178      </varlistentry>
    195179
     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
    196224      <varlistentry id="pidof">
    197225        <term><command>pidof</command></term>
     
    248276      </varlistentry>
    249277
     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
    250290      <varlistentry id="telinit">
    251291        <term><command>telinit</command></term>
     
    258298      </varlistentry>
    259299
     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
    260321    </variablelist>
    261322
Note: See TracChangeset for help on using the changeset viewer.