From cba2d4e6aa081fdf62e527d28eba137eb885f0cc Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 3 Apr 2014 21:52:09 +0000 Subject: 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 --- chapter06/sysvinit.xml | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'chapter06/sysvinit.xml') 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 @@ make -C src install + Move files that have a name conflict with + so that both packages can be installed side-by-side: + +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 + @@ -122,7 +130,7 @@ - + halt Normally invokes shutdown with the @@ -130,19 +138,19 @@ then it tells the kernel to halt the system; it notes in the file /var/log/wtmp that the system is being brought down - + halt - + init 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 - + init @@ -160,55 +168,55 @@ - + poweroff Tells the kernel to halt the system and switch off the computer (see halt) - + poweroff - + reboot Tells the kernel to reboot the system (see halt) - + reboot - + runlevel Reports the previous and the current run-level, as noted in the last run-level record in /var/run/utmp - + runlevel - + shutdown Brings the system down in a secure way, signaling all processes and notifying all logged-in users - + shutdown - + telinit Tells init which run-level to change to - + telinit -- cgit v1.2.3-54-g00ecf