| 1 |
# /etc/conf.d/rc: Global config file for the Gentoo RC System
|
| 2 |
|
| 3 |
# This is the number of tty's used in most of the rc-scripts (like
|
| 4 |
# consolefont, numlock, etc ...)
|
| 5 |
|
| 6 |
RC_TTY_NUMBER=11
|
| 7 |
|
| 8 |
# Set to "yes" if you want the rc system to try and start services
|
| 9 |
# in parallel for a slight speed improvement.
|
| 10 |
|
| 11 |
RC_PARALLEL_STARTUP="no"
|
| 12 |
|
| 13 |
# Set RC_INTERACTIVE to "yes" and you'll be able to press the I key during
|
| 14 |
# boot so you can choose to start specific services. Set to "no" to disable
|
| 15 |
# this feature.
|
| 16 |
|
| 17 |
RC_INTERACTIVE="yes"
|
| 18 |
|
| 19 |
# RC_NET_STRICT_CHECKING allows some flexibility with the 'net' service.
|
| 20 |
# The following values are allowed:
|
| 21 |
# none - The 'net' service is always considered up.
|
| 22 |
# no - This basically means that at least one net.* service besides net.lo
|
| 23 |
# must be up. This can be used by notebook users that have a wifi and
|
| 24 |
# a static nic, and only wants one up at any given time to have the
|
| 25 |
# 'net' service seen as up.
|
| 26 |
# lo - This is the same as the 'no' option, but net.lo is also counted.
|
| 27 |
# This should be useful to people that do not care about any specific
|
| 28 |
# interface being up at boot.
|
| 29 |
# yes - For this ALL network interfaces MUST be up for the 'net' service to
|
| 30 |
# be considered up.
|
| 31 |
|
| 32 |
RC_NET_STRICT_CHECKING="no"
|
| 33 |
|
| 34 |
# RC_AUTO_INTERFACE allows us to try and configure your interfaces
|
| 35 |
# automatically. This includes:
|
| 36 |
# - link /etc/{resolv,ntp,yp}.conf to /var/lib/net-scripts
|
| 37 |
# - calculate a metric based on what interfaces are up and type
|
| 38 |
# - apply interface state (resolv.conf, ntp.conf, etc)
|
| 39 |
# - merge resolv.conf and ntp.conf from active interfaces based on metric
|
| 40 |
# otherwise we don't do the above
|
| 41 |
|
| 42 |
RC_AUTO_INTERFACE="no"
|
| 43 |
|
| 44 |
# RC_DOWN_INTERFACE allows you to specify if RC will bring the interface
|
| 45 |
# compeletly down when it stops. The default is yes, but there are some
|
| 46 |
# instances where you may not want this to happen such as using Wake On LAN.
|
| 47 |
|
| 48 |
RC_DOWN_INTERFACE="yes"
|
| 49 |
|
| 50 |
# RC_VOLUME_ORDER allows you to specify, or even remove the volume setup
|
| 51 |
# for various volume managers (MD, EVMS2, LVM, DM, etc). Note that they are
|
| 52 |
# stopped in reverse order.
|
| 53 |
|
| 54 |
RC_VOLUME_ORDER="raid evms lvm dm"
|
| 55 |
|
| 56 |
# RC_VERBOSE will make init scripts more verbose. Only networking scripts
|
| 57 |
# really use this at this time, and this is useful for trouble shooting
|
| 58 |
# any issues you may have.
|
| 59 |
|
| 60 |
RC_VERBOSE="no"
|
| 61 |
|
| 62 |
# RC_BOOTLOG will generate a log of the boot messages shown on the console.
|
| 63 |
# Useful for headless machines or debugging. You need to emerge the
|
| 64 |
# app-admin/showconsole package for this to work. Note that this probably
|
| 65 |
# won't work correctly with boot splash.
|
| 66 |
|
| 67 |
RC_BOOTLOG="no"
|
| 68 |
|
| 69 |
# RC_USE_FSTAB allows you to override the default mount options for the
|
| 70 |
# standard /proc, /sys, /dev, and /dev/pts mount points. Note that this
|
| 71 |
# is the new way for selecting ramfs/tmpfs/etc... for udev mounting.
|
| 72 |
|
| 73 |
RC_USE_FSTAB="no"
|
| 74 |
|
| 75 |
# RC_USE_CONFIG_PROFILE allows you to have different /etc/conf.d files
|
| 76 |
# based on your runlevel - if a conf.d file for your profile does not exist
|
| 77 |
# then we try and use the default one.
|
| 78 |
# To enable runlevel selection at boot, append "softlevel=foobar" to your
|
| 79 |
# kernel line to change to the foobar runlevel. Here we would search for
|
| 80 |
# /etc/conf.d/<service>.foobar config files before trying to use the default
|
| 81 |
# /etc/conf.d/<service>.
|
| 82 |
# Note that it is only active if 'softlevel' was specified via the kernel line,
|
| 83 |
# and it is intended to use for different grub/lilo entries to specify config
|
| 84 |
# changes for say laptops between home and work, where you would have setup
|
| 85 |
# 'work' and 'home' runlevels, with /etc/conf.d/*.<runlevel> as needed.
|
| 86 |
|
| 87 |
RC_USE_CONFIG_PROFILE="yes"
|
| 88 |
|
| 89 |
# RC_FORCE_AUTO tries its best to prevent user interaction during the boot and
|
| 90 |
# shutdown process. For example, fsck will automatically be run or volumes
|
| 91 |
# remounted to create proper directory trees. This feature can be dangerous
|
| 92 |
# and is meant ONLY for headless machines where getting a physical console
|
| 93 |
# hooked up is a huge pita.
|
| 94 |
|
| 95 |
RC_FORCE_AUTO="no"
|
| 96 |
|
| 97 |
# Use this variable to control the /dev management behavior.
|
| 98 |
# auto - let the scripts figure out what's best at boot
|
| 99 |
# devfs - use devfs (requires sys-fs/devfsd)
|
| 100 |
# udev - use udev (requires sys-fs/udev)
|
| 101 |
# static - let the user manage /dev
|
| 102 |
|
| 103 |
RC_DEVICES="auto"
|
| 104 |
|
| 105 |
# UDEV OPTION:
|
| 106 |
# Set to "yes" if you want to save /dev to a tarball on shutdown
|
| 107 |
# and restore it on startup. This is useful if you have a lot of
|
| 108 |
# custom device nodes that udev does not handle/know about.
|
| 109 |
|
| 110 |
RC_DEVICE_TARBALL="no"
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
#
|
| 115 |
# Controlling start-stop-daemon behavior
|
| 116 |
|
| 117 |
# Set to "yes" if start-stop-daemon should always retry killing the
|
| 118 |
# service with sig KILL if it fails the first time.
|
| 119 |
|
| 120 |
RC_RETRY_KILL="yes"
|
| 121 |
|
| 122 |
|
| 123 |
# Set the amount of seconds start-stop-daemon should wait between
|
| 124 |
# retries.
|
| 125 |
|
| 126 |
RC_RETRY_TIMEOUT=1
|
| 127 |
|
| 128 |
|
| 129 |
# Set the amount of times start-stop-daemon should try to kill
|
| 130 |
# a service before giving up.
|
| 131 |
|
| 132 |
RC_RETRY_COUNT=5
|
| 133 |
|
| 134 |
|
| 135 |
# Set to "yes" if start-stop-daemon should fail if the service
|
| 136 |
# is marked as started, but not actually running on stop.
|
| 137 |
|
| 138 |
RC_FAIL_ON_ZOMBIE="no"
|
| 139 |
|
| 140 |
|
| 141 |
# Set to "yes" if start-stop-daemon should attempt to kill
|
| 142 |
# any children left in the system.
|
| 143 |
# Be careful with this as it really does what it was on the tin.
|
| 144 |
# fex, if you're in an ssh process and you restart a service on which ssh
|
| 145 |
# depends then your terminal will be killed also.
|
| 146 |
|
| 147 |
RC_KILL_CHILDREN="no"
|
| 148 |
|
| 149 |
|
| 150 |
# Set the amount of seconds start-stop-daemon waits after starting
|
| 151 |
# the daemon to check it is still running. If it's not then we
|
| 152 |
# try and stop any children if possible.
|
| 153 |
RC_WAIT_ON_START="0.1"
|
| 154 |
|
| 155 |
|
| 156 |
##############################################################################
|
| 157 |
# SERVICE CONFIGURATION VARIABLES
|
| 158 |
# These variables are documented here, but should be configured in
|
| 159 |
# /etc/conf.d/foo for service foo and NOT enabled here unless you
|
| 160 |
# really want them to work on a global basis.
|
| 161 |
|
| 162 |
# Some daemons are started and stopped via start-stop-daemon.
|
| 163 |
# We can launch them through other daemons here, for example valgrind.
|
| 164 |
# This is only useful for serious debugging of the daemon
|
| 165 |
# WARNING: If the script's "stop" function does not supply a PID file then
|
| 166 |
# all processes using the same daemon will be killed.
|
| 167 |
#RC_DAEMON="/usr/bin/valgrind --tool=memcheck --log-file=/tmp/valgrind.syslog-ng"
|
| 168 |
|
| 169 |
# strace needs to be prefixed with --background as it does not detach when
|
| 170 |
# it's following
|
| 171 |
#RC_DAEMON="--background /usr/sbin/strace -f -o /tmp/strace.syslog-ng"
|
| 172 |
|
| 173 |
# Pass ulimit parameters
|
| 174 |
#RC_ULIMIT="-u 30"
|
| 175 |
|
| 176 |
##############################################################################
|
| 177 |
|
| 178 |
|
| 179 |
#
|
| 180 |
# Internal configuration variables
|
| 181 |
#
|
| 182 |
# NB: These are for advanced users, and you should really
|
| 183 |
# know what you are doing before changing them!
|
| 184 |
#
|
| 185 |
|
| 186 |
# rc-scripts dep-cache directory
|
| 187 |
#
|
| 188 |
# NOTE: Do not remove the next line, as its needed by the baselayout ebuild!
|
| 189 |
#
|
| 190 |
# svcdir="/var/lib/init.d"
|
| 191 |
|
| 192 |
svcdir="/var/lib/init.d"
|
| 193 |
|
| 194 |
# Should we mount $svcdir in a ram disk for some speed increase
|
| 195 |
# for slower machines, or for the more extreme setups ?
|
| 196 |
|
| 197 |
svcmount="no"
|
| 198 |
|
| 199 |
# FS type that should be used for $svcdir. Note that you need
|
| 200 |
# $svcmount above set to "yes" for this to work ... Currently
|
| 201 |
# tmpfs, ramfs, and ramdisk are supported (tmpfs is the default).
|
| 202 |
|
| 203 |
svcfstype="tmpfs"
|
| 204 |
|
| 205 |
# Size of $svcdir in KB. Note that ramfs doesn't support this
|
| 206 |
# due to kernel limitations.
|
| 207 |
|
| 208 |
svcsize=2048
|