/[baselayout]/trunk/conf.d/rc
Gentoo

Contents of /trunk/conf.d/rc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2547 - (show annotations) (download)
Thu Apr 5 11:18:42 2007 UTC (11 years, 5 months ago) by uberlord
File size: 3709 byte(s)
    Rewrite the core parts in C. We now provide librc so other programs can
    query runlevels, services and state without using bash. We also provide
    libeinfo so other programs can easily use our informational functions.

    As such, we have dropped the requirement of using bash as the init script
    shell. We now use /bin/sh and have strived to make the scripts as portable
    as possible. Shells that work are bash and dash. busybox works provided
    you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you
    should disable find too.
    zsh and ksh do not work at this time.

    Networking support is currently being re-vamped also as it was heavily bash
    array based. As such, a new config format is available like so
    config_eth0="1.2.3.4/24 5.6.7.8/16"
    or like so
    config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'"

    We will still support the old bash array format provided that /bin/sh IS
    a link it bash.

    ChangeLog for baselayout-1 can be found in our SVN repo.
1 # /etc/conf.d/rc: Global config file for the Gentoo RC System
2
3 # Set to "yes" if you want the rc system to try and start services
4 # in parallel for a slight speed improvement. NOTE: When enabled
5 # init script output is buffered and displayed in one go when finished.
6 RC_PARALLEL_STARTUP="no"
7
8 # Set RC_INTERACTIVE to "yes" and you'll be able to press the I key during
9 # boot so you can choose to start specific services. Set to "no" to disable
10 # this feature.
11 RC_INTERACTIVE="yes"
12
13 # RC_VERBOSE will make init scripts more verbose and adds
14 # "Service FOO starting/started/stopping/stopped" messages around each
15 # init script.
16 RC_VERBOSE="no"
17
18 # RC_QUIET on the other hand will make init scripts quiet and produce no
19 # output.
20 RC_QUIET="no"
21
22
23 # Do we allow any started service in the runlevel to satisfy the depedency
24 # or do we want all of them regardless of state? For example, if net.eth0
25 # and net.eth0 are in the default runlevel then with RC_STRICT_DEPEND="no"
26 # both will be started, but services that depend on 'net' will work if either
27 # one comes up. With RC_STRICT_DEPEND="yes" we would require them both to
28 # come up.
29 RC_STRICT_DEPEND="no"
30
31 # Do we allow services to be hotplugged? If not, set to RC_HOTPLUG="no"
32 # NOTE: This does not affect anything hotplug/udev/devd related, just the
33 # starting/stopping of the init.d service triggered by it.
34 RC_HOTPLUG="yes"
35
36 # Dynamic /dev managers can trigger coldplug events which cause services to
37 # start before we are ready for them. If this happens, we can defer these
38 # services to start in the boot runlevel. Set RC_COLDPLUG="no" if you don't
39 # want this.
40 # NOTE: This also affects module coldplugging in udev-096 and higher
41 # If you want module coldplugging but not coldplugging of services then you
42 # can set RC_COLDPLUG="yes" and RC_PLUG_SERVICES="!*"
43 RC_COLDPLUG="yes"
44
45 # Some people want a finer grain over hotplug/coldplug. RC_PLUG_SERVICES is a
46 # list of services that are matched in order, either allowing or not. By
47 # default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be yes
48 # anyway.
49 # Example - RC_PLUG_SERVICES="net.wlan !net.*"
50 # This allows net.wlan and any service not matching net.* to be plugged.
51 RC_PLUG_SERVICES=""
52
53 # Define network fstypes. Below is the default.
54 #RC_NET_FS_LIST="afs cifs coda davfs fuse gfs ncpfs nfs nfs4 ocfs2 shfs smbfs"
55
56 # RC_FORCE_AUTO tries its best to prevent user interaction during the boot and
57 # shutdown process. For example, fsck will automatically be run or volumes
58 # remounted to create proper directory trees. This feature can be dangerous
59 # and is meant ONLY for headless machines where getting a physical console
60 # hooked up is a huge pita.
61 RC_FORCE_AUTO="no"
62
63
64 ##############################################################################
65 # SERVICE CONFIGURATION VARIABLES
66 # These variables are documented here, but should be configured in
67 # /etc/conf.d/foo for service foo and NOT enabled here unless you
68 # really want them to work on a global basis.
69
70 # Some daemons are started and stopped via start-stop-daemon.
71 # We can launch them through other daemons here, for example valgrind.
72 # This is only useful for serious debugging of the daemon
73 # WARNING: If the script's "stop" function does not supply a PID file then
74 # all processes using the same daemon will be killed.
75 #RC_DAEMON="/usr/bin/valgrind --tool=memcheck --log-file=/tmp/valgrind.syslog-ng"
76
77 # strace needs to be prefixed with --background as it does not detach when
78 # it's following
79 #RC_DAEMON="--background /usr/sbin/strace -f -o /tmp/strace.syslog-ng"
80
81 # Pass ulimit parameters
82 #RC_ULIMIT="-u 30"
83
84 # It's possible to define extra dependencies for services like so
85 #RC_NEED="openvpn"
86 #RC_USE="net.eth0"

  ViewVC Help
Powered by ViewVC 1.1.20