Ignore:
Timestamp:
04/03/2014 09:52:09 PM (10 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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, 7.6, 7.7, 7.8, 7.9, 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:
9839808
Parents:
008436e
Message:

Added systemd and dbus to the book.
Set up systemd and System V side-by-side with the
ability to reboot to either system.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/sysvinit.xml

    r008436e rcba2d4e  
    8383<screen><userinput remap="install">make -C src install</userinput></screen>
    8484
     85    <para>Move files that have a name conflict with <xref linkend="ch-system-systemd"/>
     86    so that both packages can be installed side-by-side:</para>
     87
     88<screen><userinput remap="install">for p in init halt poweroff reboot runlevel shutdown telinit; do
     89  mv -v /sbin/$p /sbin/$p-sysv
     90  mv -v /usr/share/man/man8/$p.8 /usr/share/man/man8/$p-sysv.8
     91done</userinput></screen>
     92
    8593  </sect2>
    8694
     
    123131      </varlistentry>
    124132
    125       <varlistentry id="halt">
     133      <varlistentry id="halt-sysv">
    126134        <term><command>halt</command></term>
    127135        <listitem>
     
    131139          file <filename>/var/log/wtmp</filename> that the system is being
    132140          brought down</para>
    133           <indexterm zone="ch-system-sysvinit halt">
     141          <indexterm zone="ch-system-sysvinit halt-sysv">
    134142            <primary sortas="b-halt">halt</primary>
    135143          </indexterm>
     
    137145      </varlistentry>
    138146
    139       <varlistentry id="init">
     147      <varlistentry id="init-sysv">
    140148        <term><command>init</command></term>
    141149        <listitem>
     
    143151          the hardware which takes over the boot process and starts all the
    144152          proceses it is instructed to</para>
    145           <indexterm zone="ch-system-sysvinit init">
     153          <indexterm zone="ch-system-sysvinit init-sysv">
    146154            <primary sortas="b-init">init</primary>
    147155          </indexterm>
     
    161169      </varlistentry>
    162170
    163       <varlistentry id="poweroff">
     171      <varlistentry id="poweroff-sysv">
    164172        <term><command>poweroff</command></term>
    165173        <listitem>
    166174          <para>Tells the kernel to halt the system and switch off the computer
    167175          (see <command>halt</command>)</para>
    168           <indexterm zone="ch-system-sysvinit poweroff">
     176          <indexterm zone="ch-system-sysvinit poweroff-sysv">
    169177            <primary sortas="b-poweroff">poweroff</primary>
    170178          </indexterm>
     
    172180      </varlistentry>
    173181
    174       <varlistentry id="reboot">
     182      <varlistentry id="reboot-sysv">
    175183        <term><command>reboot</command></term>
    176184        <listitem>
    177185          <para>Tells the kernel to reboot the system (see
    178186          <command>halt</command>)</para>
    179           <indexterm zone="ch-system-sysvinit reboot">
     187          <indexterm zone="ch-system-sysvinit reboot-sysv">
    180188            <primary sortas="b-reboot">reboot</primary>
    181189          </indexterm>
     
    183191      </varlistentry>
    184192
    185       <varlistentry id="runlevel">
     193      <varlistentry id="runlevel-sysv">
    186194        <term><command>runlevel</command></term>
    187195        <listitem>
    188196          <para>Reports the previous and the current run-level, as noted in the
    189197          last run-level record in <filename>/var/run/utmp</filename></para>
    190           <indexterm zone="ch-system-sysvinit runlevel">
     198          <indexterm zone="ch-system-sysvinit runlevel-sysv">
    191199            <primary sortas="b-runlevel">runlevel</primary>
    192200          </indexterm>
     
    194202      </varlistentry>
    195203
    196       <varlistentry id="shutdown">
     204      <varlistentry id="shutdown-sysv">
    197205        <term><command>shutdown</command></term>
    198206        <listitem>
    199207          <para>Brings the system down in a secure way, signaling all processes
    200208          and notifying all logged-in users</para>
    201           <indexterm zone="ch-system-sysvinit shutdown">
     209          <indexterm zone="ch-system-sysvinit shutdown-sysv">
    202210            <primary sortas="b-shutdown">shutdown</primary>
    203211          </indexterm>
     
    205213      </varlistentry>
    206214
    207       <varlistentry id="telinit">
     215      <varlistentry id="telinit-sysv">
    208216        <term><command>telinit</command></term>
    209217        <listitem>
    210218          <para>Tells <command>init</command> which run-level to change to</para>
    211           <indexterm zone="ch-system-sysvinit telinit">
     219          <indexterm zone="ch-system-sysvinit telinit-sysv">
    212220            <primary sortas="b-telinit">telinit</primary>
    213221          </indexterm>
Note: See TracChangeset for help on using the changeset viewer.