/[gentoo]/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.6 Revision 1.7
1<!-- The content of this document is licensed under the CC-BY-SA license --> 1<!-- The content of this document is licensed under the CC-BY-SA license -->
2<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 2<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
3 3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.6 2003/12/16 18:08:56 swift Exp $ --> 4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.7 2003/12/16 18:36:04 swift Exp $ -->
5 5
6<sections> 6<sections>
7<section> 7<section>
8<title>Runlevels</title> 8<title>Runlevels</title>
9<subsection> 9<subsection>
46<body> 46<body>
47 47
48<p> 48<p>
49Now <c>init</c> doesn't just execute the scripts in <path>/etc/init.d</path> 49Now <c>init</c> doesn't just execute the scripts in <path>/etc/init.d</path>
50randomly. Even more, it doesn't run all scripts in <path>/etc/init.d</path>, 50randomly. Even more, it doesn't run all scripts in <path>/etc/init.d</path>,
51only the scripts it is told to execute. It decides what scripts to execute by 51only the scripts it is told to execute. It decides which scripts to execute by
52looking into <path>/etc/runlevels</path>. 52looking into <path>/etc/runlevels</path>.
53</p> 53</p>
54 54
55<p> 55<p>
56First, <c>init</c> runs all scripts from <path>/etc/init.d</path> that have 56First, <c>init</c> runs all scripts from <path>/etc/init.d</path> that have
63<p> 63<p>
64When all <path>/etc/runlevels/boot</path> referenced scripts are executed, 64When all <path>/etc/runlevels/boot</path> referenced scripts are executed,
65<c>init</c> continues with running the scripts that have a symbolic link to them 65<c>init</c> continues with running the scripts that have a symbolic link to them
66in <path>/etc/runlevels/default</path>. Again, it will use the alphabetical 66in <path>/etc/runlevels/default</path>. Again, it will use the alphabetical
67order to decide what script to run first, unless a script has dependency 67order to decide what script to run first, unless a script has dependency
68information in it, in which the order is changed to provide a valid start-up 68information in it, in which case the order is changed to provide a valid
69sequence. 69start-up sequence.
70</p> 70</p>
71 71
72</body> 72</body>
73</subsection> 73</subsection>
74<subsection> 74<subsection>
306<title>Adding and Removing Services</title> 306<title>Adding and Removing Services</title>
307<body> 307<body>
308 308
309<p> 309<p>
310You have already added init scripts to the "default" runlevel during the 310You have already added init scripts to the "default" runlevel during the
311installation of Gentoo. At that time you might not had a clue what the 311installation of Gentoo. At that time you might not have had a clue what the
312"default" is for, but now you should. The <c>rc-update</c> script requires a 312"default" is for, but now you should. The <c>rc-update</c> script requires a
313second argument that defines the action: <e>add</e>, <e>del</e> or <e>show</e>. 313second argument that defines the action: <e>add</e>, <e>del</e> or <e>show</e>.
314</p> 314</p>
315 315
316<p> 316<p>

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.20