From 81fd230419b0cfd052b08fc1ed352bb7d49975df Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Sat, 19 Feb 2005 22:16:42 +0000 Subject: Trunk is now identical to Testing git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4648 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/sysvinit.xml | 191 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 183 insertions(+), 8 deletions(-) (limited to 'chapter06/sysvinit.xml') diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml index b3cfab986..65af49d7f 100644 --- a/chapter06/sysvinit.xml +++ b/chapter06/sysvinit.xml @@ -3,13 +3,15 @@ %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> @@ -17,21 +19,34 @@ <seglistitem><seg>0.1 SBU</seg><seg> 0.9 MB</seg></seglistitem> </segmentedlist> +<segmentedlist> +<segtitle>Sysvinit installation depends on</segtitle> +<seglistitem><seg>Binutils, Coreutils, GCC, Glibc, and Make</seg></seglistitem> +</segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Sysvinit -Issue a sed sustitution: +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 Sysvinit: +Compile the package: make -C src -Then install it: +Install the package: make -C src install @@ -39,8 +54,14 @@ Configuring Sysvinit + +Sysvinit +configuring + +/etc/inittab -Create a /etc/inittab file: +Create a new file /etc/inittab by running the +following: cat > /etc/inittab << "EOF" # Begin /etc/inittab @@ -71,14 +92,90 @@ su:S016:once:/sbin/sulogin # End /etc/inittab EOF +The -I '\033(K' option tells +agetty to send this escape sequence to the terminal +before doing anything else. This escape sequence switches the console +character set to a user-defined one, which can be modified by running +the setfont program. The console +initscript from the LFS-Bootscripts package calls the setfont +program during system startup. Sending this escape sequence is +necessary for people who use non-ISO 8859-1 screen fonts, but it does +not effect native English speakers. + Contents of Sysvinit -See testing + +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 + - + +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