/[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.28 Revision 1.29
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.28 2007/01/29 02:45:56 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-rcscripts.xml,v 1.29 2007/03/08 06:52:27 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12Gentoo uses a special initscript format which, amongst other features, allows 12Gentoo uses a special initscript format which, amongst other features, allows
13dependency-driven decisions and virtual initscripts. This chapter explains all 13dependency-driven decisions and virtual initscripts. This chapter explains all
14these aspects and explains how to deal with these scripts. 14these aspects and explains how to deal with these scripts.
15</abstract> 15</abstract>
16 16
17<version>1.22</version> 17<version>1.23</version>
18<date>2006-09-07</date> 18<date>2007-03-07</date>
19 19
20<section> 20<section>
21<title>Runlevels</title> 21<title>Runlevels</title>
22<subsection> 22<subsection>
23<title>Booting your System</title> 23<title>Booting your System</title>
753 local | offline 753 local | offline
754 net.eth0 | 754 net.eth0 |
755</pre> 755</pre>
756 756
757<p> 757<p>
758Even though <c>net.eth0</c> has been removed from the offline runlevel,
759<c>udev</c> will still attempt to start any devices it detects and launch the
760appropriate services. Therefore, you will need to add each network service you
761do not want started (as well as services for any other devices that may be
762started by udev) to <path>/etc/conf.d/rc</path> as shown.
763</p>
764
765<pre caption="Disabling device initiated services in /etc/conf.d/rc">
766RC_COLDPLUG="yes"
767<comment>(Next, specify the services you do not want automatically started)</comment>
768RC_PLUG_SERVICES="!net.eth0"
769</pre>
770
771<note>
772For more information on device initiated services, please see the comments
773inside <path>/etc/conf.d/rc</path>.
774</note>
775
776<p>
758Now edit your bootloader configuration and add a new entry for the 777Now edit your bootloader configuration and add a new entry for the
759<c>offline</c> runlevel. For instance, in <path>/boot/grub/grub.conf</path>: 778<c>offline</c> runlevel. For instance, in <path>/boot/grub/grub.conf</path>:
760</p> 779</p>
761 780
762<pre caption="Adding an entry for the offline runlevel"> 781<pre caption="Adding an entry for the offline runlevel">

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20