aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/sysvinit.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2014-04-03 21:52:09 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2014-04-03 21:52:09 +0000
commitcba2d4e6aa081fdf62e527d28eba137eb885f0cc (patch)
treeeee1c3ef6d42101635b135289262eb1386cf87a0 /chapter06/sysvinit.xml
parent008436e04cb47fbba28ab083cf4ef9339699b5fd (diff)
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
Diffstat (limited to 'chapter06/sysvinit.xml')
-rw-r--r--chapter06/sysvinit.xml36
1 files changed, 22 insertions, 14 deletions
diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml
index b1fac46db..c77f77ca1 100644
--- a/chapter06/sysvinit.xml
+++ b/chapter06/sysvinit.xml
@@ -82,6 +82,14 @@
<screen><userinput remap="install">make -C src install</userinput></screen>
+ <para>Move files that have a name conflict with <xref linkend="ch-system-systemd"/>
+ so that both packages can be installed side-by-side:</para>
+
+<screen><userinput remap="install">for p in init halt poweroff reboot runlevel shutdown telinit; do
+ mv -v /sbin/$p /sbin/$p-sysv
+ mv -v /usr/share/man/man8/$p.8 /usr/share/man/man8/$p-sysv.8
+done</userinput></screen>
+
</sect2>
<sect2 id="contents-sysvinit" role="content">
@@ -122,7 +130,7 @@
</listitem>
</varlistentry>
- <varlistentry id="halt">
+ <varlistentry id="halt-sysv">
<term><command>halt</command></term>
<listitem>
<para>Normally invokes <command>shutdown</command> with the
@@ -130,19 +138,19 @@
then it tells the kernel to halt the system; it notes in the
file <filename>/var/log/wtmp</filename> that the system is being
brought down</para>
- <indexterm zone="ch-system-sysvinit halt">
+ <indexterm zone="ch-system-sysvinit halt-sysv">
<primary sortas="b-halt">halt</primary>
</indexterm>
</listitem>
</varlistentry>
- <varlistentry id="init">
+ <varlistentry id="init-sysv">
<term><command>init</command></term>
<listitem>
<para>The first process to be started when the kernel has initialized
the hardware which takes over the boot process and starts all the
proceses it is instructed to</para>
- <indexterm zone="ch-system-sysvinit init">
+ <indexterm zone="ch-system-sysvinit init-sysv">
<primary sortas="b-init">init</primary>
</indexterm>
</listitem>
@@ -160,55 +168,55 @@
</listitem>
</varlistentry>
- <varlistentry id="poweroff">
+ <varlistentry id="poweroff-sysv">
<term><command>poweroff</command></term>
<listitem>
<para>Tells the kernel to halt the system and switch off the computer
(see <command>halt</command>)</para>
- <indexterm zone="ch-system-sysvinit poweroff">
+ <indexterm zone="ch-system-sysvinit poweroff-sysv">
<primary sortas="b-poweroff">poweroff</primary>
</indexterm>
</listitem>
</varlistentry>
- <varlistentry id="reboot">
+ <varlistentry id="reboot-sysv">
<term><command>reboot</command></term>
<listitem>
<para>Tells the kernel to reboot the system (see
<command>halt</command>)</para>
- <indexterm zone="ch-system-sysvinit reboot">
+ <indexterm zone="ch-system-sysvinit reboot-sysv">
<primary sortas="b-reboot">reboot</primary>
</indexterm>
</listitem>
</varlistentry>
- <varlistentry id="runlevel">
+ <varlistentry id="runlevel-sysv">
<term><command>runlevel</command></term>
<listitem>
<para>Reports the previous and the current run-level, as noted in the
last run-level record in <filename>/var/run/utmp</filename></para>
- <indexterm zone="ch-system-sysvinit runlevel">
+ <indexterm zone="ch-system-sysvinit runlevel-sysv">
<primary sortas="b-runlevel">runlevel</primary>
</indexterm>
</listitem>
</varlistentry>
- <varlistentry id="shutdown">
+ <varlistentry id="shutdown-sysv">
<term><command>shutdown</command></term>
<listitem>
<para>Brings the system down in a secure way, signaling all processes
and notifying all logged-in users</para>
- <indexterm zone="ch-system-sysvinit shutdown">
+ <indexterm zone="ch-system-sysvinit shutdown-sysv">
<primary sortas="b-shutdown">shutdown</primary>
</indexterm>
</listitem>
</varlistentry>
- <varlistentry id="telinit">
+ <varlistentry id="telinit-sysv">
<term><command>telinit</command></term>
<listitem>
<para>Tells <command>init</command> which run-level to change to</para>
- <indexterm zone="ch-system-sysvinit telinit">
+ <indexterm zone="ch-system-sysvinit telinit-sysv">
<primary sortas="b-telinit">telinit</primary>
</indexterm>
</listitem>