Changeset 90e3cb3 for chapter07/usage.xml
- Timestamp:
- 02/01/2004 09:49:10 PM (21 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, 12.2, 12.2-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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 247acde
- Parents:
- c288d97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/usage.xml
rc288d97 r90e3cb3 26 26 6: reboot the computer</literallayout> 27 27 28 <para>The command used to change runlevels is <userinput>init 29 <runlevel></userinput> where <runlevel> is 30 the target runlevel. For example, to reboot the computer, a user would issue 31 the init 6 command. The reboot command is just an alias, as is the halt 32 command an alias to init 0.</para> 28 <para>The command used to change runlevels is <command>init 29 <runlevel></command> where <runlevel> is the target runlevel. For 30 example, to reboot the computer, a user would issue the <command>init 31 6</command> command. The <command>reboot</command> command is just an alias for 32 it, as is the <command>halt</command> command an alias for <command>init 33 0</command>.</para> 33 34 34 <para>There are a number of directories under /etc/rc.d that look like 35 like rc?.d where ? is the number of the runlevel and rcsysinit.d which 36 contain a number of symbolic links. Some begin with a K, the others 37 begin with an S, and all of them have two numbers following the initial 38 letter. The K means to stop (kill) a service, and the S means to start a 39 service. The numbers determine the order in which the scripts are run, 40 from 00 to 99; the lower the number the sooner it gets executed. When init 41 switches to another runlevel, the appropriate services get killed and 42 others get started.</para> 35 <para>There are a number of directories under <filename>/etc/rc.d</filename> 36 that look like like rc?.d where ? is the number of the runlevel and rcsysinit.d 37 which contain a number of symbolic links. Some begin with a K, the others begin 38 with an S, and all of them have two numbers following the initial letter. The K 39 means to stop (kill) a service, and the S means to start a service. The numbers 40 determine the order in which the scripts are run, from 00 to 99; the lower the 41 number the sooner it gets executed. When init switches to another runlevel, the 42 appropriate services get killed and others get started.</para> 43 43 44 44 <para>The real scripts are in /etc/rc.d/init.d. They do all the work, and the
Note:
See TracChangeset
for help on using the changeset viewer.