From ddd554266cd757b9da553e430eeb408bf8bbc5c4 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Fri, 10 Feb 2006 19:05:30 +0000 Subject: Finished the XML indentation plus few tags changes. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7369 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/sysvinit.xml | 479 +++++++++++++++++++++++++++---------------------- 1 file changed, 268 insertions(+), 211 deletions(-) (limited to 'chapter06/sysvinit.xml') diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml index a82fdd9a8..e2d8677cb 100644 --- a/chapter06/sysvinit.xml +++ b/chapter06/sysvinit.xml @@ -1,69 +1,87 @@ - %general-entities; ]> + -Sysvinit-&sysvinit-version; - - -Sysvinit - - -<para>The Sysvinit package contains programs for controlling the startup, -running, and shutdown of the system.</para> - -<segmentedlist> -<segtitle>&buildtime;</segtitle> -<segtitle>&diskspace;</segtitle> -<seglistitem><seg>0.1 SBU</seg><seg>1012 KB</seg></seglistitem> -</segmentedlist> - -<segmentedlist> -<segtitle>&dependencies;</segtitle> -<seglistitem><seg>Binutils, Coreutils, GCC, Glibc, and Make</seg></seglistitem> -</segmentedlist> -</sect2> - -<sect2 role="installation"> -<title>Installation of Sysvinit - -When run-levels are changed (for example, when halting the -system), init sends termination signals to those -processes that init itself started and that should -not be running in the new run-level. While doing this, -init outputs messages like Sending processes -the TERM signal which seem to imply that it is sending these -signals to all currently running processes. To avoid this -misinterpretation, modify the source so that these messages read like -Sending processes started by init the TERM signal -instead: + + + Sysvinit-&sysvinit-version; + + + Sysvinit + + + + + + <para>The Sysvinit package contains programs for controlling the startup, + running, and shutdown of the system.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>0.1 SBU</seg><seg>1012 KB</seg> + </seglistitem> + </segmentedlist> + + <segmentedlist> + <segtitle>&dependencies;</segtitle> + + <seglistitem> + <seg>Binutils, Coreutils, GCC, Glibc, and Make</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Sysvinit + + When run-levels are changed (for example, when halting the + system), init sends termination signals to those + processes that init itself started and that should + not be running in the new run-level. While doing this, + init outputs messages like Sending processes + the TERM signal which seem to imply that it is sending these + signals to all currently running processes. To avoid this + misinterpretation, modify the source so that these messages read like + Sending processes started by init the TERM signal + instead: sed -i 's@Sending processes@& started by init@g' \ src/init.c -Compile the package: + Compile the package: make -C src -This package does not come with a test suite. + This package does not come with a test suite. -Install the package: + Install the package: make -C src install - + + + Configuring Sysvinit -Configuring Sysvinit - -Sysvinit -configuring + + Sysvinit + configuring + -/etc/inittab + + /etc/inittab + -Create a new file /etc/inittab by running the -following: + Create a new file /etc/inittab by running the + following: cat > /etc/inittab << "EOF" # Begin /etc/inittab @@ -93,170 +111,209 @@ su:S016:once:/sbin/sulogin # End /etc/inittab EOF - - - -Contents of Sysvinit - - -Installed programs -halt, init, killall5, last, lastb (link to last), mesg, pidof (link to -killall5), poweroff (link to halt), reboot (link to halt), runlevel, shutdown, sulogin, telinit -(link to init), utmpdump, and wall - - -Short Descriptions - - - - -halt - -Normally invokes shutdown with the --h option, except when already in run-level 0, -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 - - - - -killall5 - -Sends a signal to all processes, except the processes in its own -session so it will not kill the shell running the script that called -it -killall5 - - - - -last - -Shows which users last logged in (and out), -searching back through the /var/log/wtmp file; it -also shows system boots, shutdowns, and run-level changes -last - - - - -lastb - -Shows the failed login attempts, as logged in -/var/log/btmp -lastb - - - - -mesg - -Controls whether other users can send messages to the current -user's terminal -mesg - - - - -mountpoint - -Checks if the directory is a mountpoint -mountpoint - - - - -pidof - -Reports the PIDs of the given programs -pidof - - - - -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 - - - - -sulogin - -Allows root to log in; it is -normally invoked by init when the system goes into single user mode -sulogin - - - - -telinit - -Tells init which run-level to change to -telinit - - - - -utmpdump - -Displays the content of the given login file in a more -user-friendly format -utmpdump - - - - -wall - -Writes a message to all logged-in users -wall - - - - - - + + + + Contents of Sysvinit + + + Installed programs + + + halt, init, killall5, last, lastb (link to last), mesg, mountpoint, + pidof (link to killall5), poweroff (link to halt), reboot (link to halt), + runlevel, shutdown, sulogin, telinit (link to init), utmpdump, and + wall + + + + + Short Descriptions + + + + + halt + + Normally invokes shutdown with the + -h option, except when already in run-level 0, + 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 + + + + + + killall5 + + Sends a signal to all processes, except the processes in its own + session so it will not kill the shell running the script that called + it + + killall5 + + + + + + last + + Shows which users last logged in (and out), searching back + through the /var/log/wtmp file; it also shows + system boots, shutdowns, and run-level changes + + last + + + + + + lastb + + Shows the failed login attempts, as logged in + /var/log/btmp + + lastb + + + + + + mesg + + Controls whether other users can send messages to the current + user's terminal + + mesg + + + + + + mountpoint + + Checks if the directory is a mountpoint + + mountpoint + + + + + + pidof + + Reports the PIDs of the given programs + + pidof + + + + + + 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 + + + + + + sulogin + + Allows root to log in; + it is normally invoked by init when the system goes + into single user mode + + sulogin + + + + + + telinit + + Tells init which run-level to change to + + telinit + + + + + + utmpdump + + Displays the content of the given login file in a more + user-friendly format + + utmpdump + + + + + + wall + + Writes a message to all logged-in users + + wall + + + + + + + + -- cgit v1.2.3-54-g00ecf