Changeset 342b176 for chapter06/sysvinit.xml
- Timestamp:
- 02/09/2004 10:45:54 PM (20 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/sysvinit.xml
rc76accc r342b176 17 17 <title>Installation of Sysvinit</title> 18 18 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 21 itself started and that shouldn't be running in the new runlevel. While doing 22 this, <command>init</command> outputs messages like "Sending processes the TERM 23 signal" which seem to imply that it is sending these signals to all currently 24 running processes. To avoid this misinterpretation, you can modify the source 25 so that these messages read like "Sending processes started by init the TERM 26 signal" instead:</para> 28 27 29 28 <screen><userinput>cp src/init.c{,.backup} … … 41 40 </sect2> 42 41 43 &c6-cf-sysvinit; 42 <sect2><title> </title><para> </para></sect2> 43 44 <sect2><title>Configuring Sysvinit</title> 45 46 <para>Create a new <filename>/etc/inittab</filename> file by running the 47 following:</para> 48 49 <screen><userinput>cat > /etc/inittab << "EOF"</userinput> 50 # Begin /etc/inittab 51 52 id:3:initdefault: 53 54 si::sysinit:/etc/rc.d/init.d/rc sysinit 55 56 l0:0:wait:/etc/rc.d/init.d/rc 0 57 l1:S1:wait:/etc/rc.d/init.d/rc 1 58 l2:2:wait:/etc/rc.d/init.d/rc 2 59 l3:3:wait:/etc/rc.d/init.d/rc 3 60 l4:4:wait:/etc/rc.d/init.d/rc 4 61 l5:5:wait:/etc/rc.d/init.d/rc 5 62 l6:6:wait:/etc/rc.d/init.d/rc 6 63 64 ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now 65 66 su:S016:once:/sbin/sulogin 67 68 1:2345:respawn:/sbin/agetty tty1 9600 69 2:2345:respawn:/sbin/agetty tty2 9600 70 3:2345:respawn:/sbin/agetty tty3 9600 71 4:2345:respawn:/sbin/agetty tty4 9600 72 5:2345:respawn:/sbin/agetty tty5 9600 73 6:2345:respawn:/sbin/agetty tty6 9600 74 75 # End /etc/inittab 76 <userinput>EOF</userinput></screen> 77 78 </sect2> 44 79 45 80 &aa-sysvinit-shortdesc;
Note:
See TracChangeset
for help on using the changeset viewer.