Ignore:
Timestamp:
02/09/2004 10:45:54 PM (20 years ago)
Author:
Alex Gronenwoud <alex@…>
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, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 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, v5_1, v5_1_1, 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:
418e6cc
Parents:
c76accc
Message:

Merging configaration subsections into their corresponding sections.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/sysvinit.xml

    rc76accc r342b176  
    1717<title>Installation of Sysvinit</title>
    1818
    19 <para>When run levels are changed (for example, when halting the system),
    20 init sends the TERM and KILL signals to the processes which it started.
    21 Init prints "Sending processes the TERM signal" to the screen. This seems
    22 to imply that init is sending these signals to all the currently running
    23 processes. To avoid this confusion, the init.c file can be modified, so
    24 that the sentence reads "Sending processes started by init the TERM
    25 signal".</para>
    26 
    27 <para>Edit the halt message:</para>
     19<para>When runlevels are changed (for example, when halting the system),
     20<command>init</command> sends termination signals to those processes that it
     21itself started and that shouldn't be running in the new runlevel. While doing
     22this, <command>init</command> outputs messages like "Sending processes the TERM
     23signal" which seem to imply that it is sending these signals to all currently
     24running processes. To avoid this misinterpretation, you can modify the source
     25so that these messages read like "Sending processes started by init the TERM
     26signal" instead:</para>
    2827
    2928<screen><userinput>cp src/init.c{,.backup}
     
    4140</sect2>
    4241
    43 &c6-cf-sysvinit;
     42<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
     43
     44<sect2><title>Configuring Sysvinit</title>
     45
     46<para>Create a new <filename>/etc/inittab</filename> file by running the
     47following:</para>
     48
     49<screen><userinput>cat &gt; /etc/inittab &lt;&lt; "EOF"</userinput>
     50# Begin /etc/inittab
     51
     52id:3:initdefault:
     53
     54si::sysinit:/etc/rc.d/init.d/rc sysinit
     55
     56l0:0:wait:/etc/rc.d/init.d/rc 0
     57l1:S1:wait:/etc/rc.d/init.d/rc 1
     58l2:2:wait:/etc/rc.d/init.d/rc 2
     59l3:3:wait:/etc/rc.d/init.d/rc 3
     60l4:4:wait:/etc/rc.d/init.d/rc 4
     61l5:5:wait:/etc/rc.d/init.d/rc 5
     62l6:6:wait:/etc/rc.d/init.d/rc 6
     63
     64ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
     65
     66su:S016:once:/sbin/sulogin
     67
     681:2345:respawn:/sbin/agetty tty1 9600
     692:2345:respawn:/sbin/agetty tty2 9600
     703:2345:respawn:/sbin/agetty tty3 9600
     714:2345:respawn:/sbin/agetty tty4 9600
     725:2345:respawn:/sbin/agetty tty5 9600
     736:2345:respawn:/sbin/agetty tty6 9600
     74
     75# End /etc/inittab
     76<userinput>EOF</userinput></screen>
     77
     78</sect2>
    4479
    4580&aa-sysvinit-shortdesc;
Note: See TracChangeset for help on using the changeset viewer.