Home | History | Annotate | Line # | Download | only in defaults
rc.conf revision 1.105
      1 #	$NetBSD: rc.conf,v 1.105 2009/09/11 18:17:04 apb Exp $
      2 #
      3 # /etc/defaults/rc.conf --
      4 #	default configuration of /etc/rc.conf
      5 #
      6 # see rc.conf(5) for more information.
      7 #
      8 # DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING A SYSTEM UPGRADE.
      9 # EDIT /etc/rc.conf INSTEAD.
     10 #
     11 
     12 #
     13 # Use program=YES to enable program, NO to disable it. program_flags are
     14 # passed to the program on the command line.
     15 #
     16 
     17 # Uncomment this if you want to use local paths in rc.
     18 #
     19 #export PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin
     20 
     21 # Uncomment the following to execute each /etc/rc.d script in
     22 # the current shell rather than in a subshell.  This may be
     23 # faster on very slow machines that have an expensive fork(2).
     24 #	NOTE:	USE THIS AT YOUR OWN RISK; A ROGUE COMMAND
     25 #		MAY INADVERTENTLY PREVENT BOOT TO MULTIUSER.
     26 #
     27 #rc_fast_and_loose=YES
     28 
     29 # If rc_silent is true then /etc/rc will suppress most output to
     30 # the console.  The default is taken from the AB_SILENT flag passed
     31 # from the boot loader to the kernel in the boothowto(9) variable.
     32 #
     33 # rc_silent_cmd is executed once for each suppressed line of output.
     34 # Useful values are ":" and "twiddle".
     35 #
     36 rc_silent=$( [ "$(( $(/sbin/sysctl -n kern.boothowto 2>/dev/null || echo 0) \
     37 		    & 0x40000 ))" != 0 ] && echo true || echo false )
     38 rc_silent_cmd=twiddle
     39 
     40 # Additional flags to the rcorder(8) that's run by /etc/rc.
     41 #
     42 rc_rcorder_flags=""
     43 
     44 # The directories searched for rc scripts.
     45 # These directories must be part of the root filesystem.
     46 rc_directories=/etc/rc.d 
     47 
     48 # If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
     49 #
     50 do_rcshutdown=YES
     51 
     52 # Additional flags to the rcorder(8) that's run by /etc/rc.shutdown.
     53 #
     54 rcshutdown_rcorder_flags=""
     55 
     56 # If this is non-blank, use as the number of seconds to run a watchdog
     57 # timer which will terminate /etc/rc.shutdown if the timeout expires.
     58 #
     59 rcshutdown_timeout=""
     60 
     61 
     62 # Basic network configuration
     63 #
     64 
     65 # Fully Qualified Internet Domain Name (a.k.a. hostname, e.g. foo.baz.edu).
     66 # If blank, use /etc/myname.
     67 #
     68 hostname=""
     69 
     70 # If there's only one way out of your IPv4 network, set this to the hostname
     71 # or the IPv4 address of the router that will get your packets off the LAN.
     72 # If blank, use /etc/mygate.
     73 #
     74 defaultroute=""
     75 
     76 # Same thing for IPv6.  If blank, use /etc/mygate6.
     77 #
     78 defaultroute6=""
     79 
     80 # The NIS domain name (formerly known as Yellow Pages); not in any way
     81 # related to Internet domain names.
     82 # If blank, use /etc/defaultdomain.
     83 #
     84 domainname=""
     85 
     86 # Filesystems to mount early in boot-up.
     87 # Note that `/var' is needed in $critical_filesystems_local (or
     88 # implied as part of `/') as certain services that need /var (such as
     89 # dhclient) may be needed to get the network operational enough to mount
     90 # the $critical_filesystems_remote.
     91 #
     92 critical_filesystems_local="/var"
     93 critical_filesystems_remote="/usr"
     94 
     95 # Swap device controls.
     96 #
     97 no_swap=NO		# Set to YES if you have purposefully setup no swap
     98 			# partitions and don't want to be warned about it.
     99 swapoff=YES		# Remove block-type swap partitions upon shutdown
    100 			# This defaults to yes, so that raids shutdown cleanly
    101 
    102 # Concatenated disk driver.
    103 #
    104 ccd=YES
    105 
    106 # RAIDframe driver (manually configured devices).
    107 #
    108 raidframe=YES
    109 
    110 # Crypto file system.
    111 #
    112 cgd=YES
    113 
    114 # Logical Volume Manager
    115 #
    116 lvm=NO
    117 
    118 # One-time actions and programs on boot-up.
    119 #
    120 savecore=YES		savecore_flags="-z"
    121 			savecore_dir="/var/crash"
    122 per_user_tmp=NO					# per-user /tmp directories
    123 per_user_tmp_dir="/private/tmp"			# real storage for /tmp
    124 clear_tmp=YES					# clear /tmp after reboot
    125 update_motd=YES					# updates /etc/motd
    126 dmesg=YES		dmesg_flags=""		# write /var/run/dmesg.boot
    127 accounting=NO					# uses /var/account/acct
    128 newsyslog=NO		newsyslog_flags=""	# trim log files
    129 quota=YES					# check and enable quotas
    130 ldconfig=YES					# rebuild a.out ldconfig cache
    131 sysdb=YES					# build system databases
    132 rndctl=NO		rndctl_flags=""		# configure rndctl(8)
    133 gpio=NO						# configure GPIO devices
    134 
    135 # cope with other OSes using the real time clock at localtime on this
    136 # machine (by adjusting kern.rtc_offset at boot)
    137 rtclocaltime=NO
    138 
    139 # NOTE: default coredump name now set in /etc/sysctl.conf
    140 
    141 #
    142 # File system check flags; default to preen mode, checking filesystems
    143 # that are listed in /etc/fstab in parallel as the fsck pass number
    144 # permits. Fix minor faults automatically, and exit with non 0 only
    145 # when major errors occur.
    146 #
    147 fsck_flags=-p
    148 
    149 # Security setting.  If $securelevel is non-empty, the system securelevel
    150 # is set to this value early in the boot sequence.  Otherwise the default
    151 # action is taken (see init(8)).
    152 #
    153 securelevel=""					# securelevel to set to
    154 
    155 # To set the IP address of an interface either use
    156 #  ifconfig_xxN="IP-NO"
    157 # where xxN is the interface.  If this variable is not set then
    158 # contents of the file /etc/ifconfig.xxN is used.
    159 
    160 # Networking startup.
    161 #
    162 ipfilter=NO		ipfilter_flags=""	# uses /etc/ipf.conf
    163 ipnat=NO					# uses /etc/ipnat.conf
    164 ipfs=NO			ipfs_flags=""		# save/load ipnat and ipf states
    165 ipsec=NO					# uses /etc/ipsec.conf
    166 ipmon=NO		ipmon_flags="-Dns"	# syslog ipfilter messages
    167 pf=NO			pf_rules="/etc/pf.conf"
    168 pflogd=NO
    169 ftp_proxy=NO
    170 racoon=NO					# IKE daemon
    171 auto_ifconfig=YES				# config all avail. interfaces
    172 net_interfaces=""				# used only if above is NO
    173 flushroutes=YES					# flush routes in netstart
    174 dhcpcd=NO
    175 dhcpcd_flags="-q"				# For ifconfig_XXX=dhcp.
    176 dhclient=NO					# behave as a DHCP client
    177 			dhclient_flags=""	# blank: config all interfaces
    178 ntpdate=NO  		ntpdate_flags="-b -s"	# May need '-u' thru firewall
    179 ppp_peers=""					# /etc/ppp/peers to call
    180 ip6mode=host					# host, autohost or router
    181 ip6uniquelocal=NO				# IPv6 unique-local forwarding
    182 rtsol=NO		rtsol_flags="-a"	# for ip6mode=autohost only
    183 
    184 # Special treatment for interfaces that need to be downed on
    185 # shutdown (because they might cause unnecessary costs or block resources
    186 # on the peer). All pppoe* interfaces are automatically included in this
    187 # list, add others here manually.
    188 #force_down_interfaces=""
    189 
    190 ifwatchd=NO	# execute up/down scripts for in-kernel PPPoE interfaces
    191 	ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
    192 
    193 # ALTQ configuration/monitoring daemon
    194 altqd=NO		altqd_flags=""
    195 
    196 # Daemons required by servers.  These are not needed for strictly client use.
    197 #
    198 
    199 # inetd is used to start the IP-based services enabled in /etc/inetd.conf
    200 #
    201 inetd=YES		inetd_flags="-l"	# -l logs libwrap
    202 
    203 # identd
    204 #
    205 identd=NO		identd_flags="-b -l -u nobody"
    206 
    207 # rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
    208 #
    209 rpcbind=NO		rpcbind_flags="-l"	# -l logs libwrap
    210 
    211 # Commonly used daemons.
    212 #
    213 syslogd=YES		syslogd_flags="-s"	# -s "secure" unix domain only
    214 cron=YES
    215 named=NO		named_flags=""		# see below for named_chrootdir
    216 timed=NO		timed_flags=""
    217 ntpd=NO			ntpd_flags=""		# see below for ntpd_chrootdir
    218 # The default setting for postfix here is YES, but gets re-examined by
    219 # the rc.d/postfix startup script when it runs.  The script sets
    220 # _rc_d_postfix to "check", and then causes all rc.conf settings to
    221 # be re-evaluated.  If the value of $postfix after this is "check",
    222 # the script then checks to see if /etc/mailer.conf selects the system
    223 # postfix. If not, it does print a warning and does not start postfix 
    224 # to avoid conflict with a different MTA.
    225 postfix=${_rc_d_postfix:-YES}
    226 lpd=NO			lpd_flags="-s"		# -s "secure" unix domain only
    227 sshd=NO			sshd_flags=""
    228 ssh_keygen_flags="-b 1024"	# generate 1024 bit keys if host keys missing
    229 ftpd=NO			ftpd_flags="-ll"
    230 httpd=NO		httpd_flags=""
    231 			httpd_wwwdir="/var/www"
    232 			httpd_wwwuser="_httpd"
    233 
    234 # To run the named(8) DNS server as an unprivileged user under a
    235 # chroot(2) cage, uncomment the following after migrating the contents
    236 # of /etc/namedb to /var/chroot/named/etc/namedb
    237 #
    238 #named_chrootdir="/var/chroot/named"
    239 
    240 # To run the ntpd(8) NTP server as an unprivileged user under a
    241 # chroot(2) cage, uncomment the following, after ensuring that:
    242 #	- The kernel has "pseudo-device clockctl" compiled in
    243 #	- /dev/clockctl is present
    244 #
    245 #ntpd_chrootdir="/var/chroot/ntpd"
    246 
    247 # Routing daemons.
    248 #
    249 routed=NO		routed_flags="-q"
    250 gated=NO
    251 mrouted=NO		mrouted_flags=""
    252 route6d=NO		route6d_flags=""
    253 rtsold=NO		rtsold_flags=""		# for ip6mode=autohost only
    254 
    255 # Daemons used to boot other hosts over a network.
    256 #
    257 rarpd=NO		rarpd_flags="-a"
    258 bootparamd=NO		bootparamd_flags=""
    259 dhcpd=NO		dhcpd_flags="-q"
    260 dhcrelay=NO		dhcrelay_flags=""
    261 rbootd=NO		rbootd_flags=""
    262 mopd=NO			mopd_flags="-a"
    263 ndbootd=NO		ndbootd_flags="-s /tftpboot /tftpboot/bootyy"
    264 rtadvd=NO		rtadvd_flags=""
    265 
    266 # X11 daemons.
    267 #
    268 xfs=NO			xfs_flags=""		# X11 font server
    269 xdm=NO			xdm_flags=""		# X11 display manager; needs
    270 						# wscons=YES for local displays.
    271 
    272 # YP (NIS) daemons.
    273 #
    274 ypbind=NO		ypbind_flags=""
    275 ypserv=NO		ypserv_flags="-d"
    276 yppasswdd=NO		yppasswdd_flags=""
    277 
    278 # NFS daemons and parameters.
    279 #
    280 mountd=NO		mountd_flags=""		# NFS mount requests daemon
    281 nfs_client=NO					# enable client daemons
    282 nfs_server=NO					# enable server daemons
    283 			nfsd_flags="-6tun 4"
    284 lockd=NO		lockd_flags=""
    285 statd=NO		statd_flags=""
    286 amd=NO			amd_flags="-l syslog -x error,noinfo,nostats"
    287 			amd_dir=/amd			# mount dir
    288 
    289 # Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
    290 kdc=NO			kdc_flags="--detach"
    291 
    292 # iSCSI target
    293 iscsi_target=NO		iscsi_target_flags=""
    294 
    295 # WPA daemons.
    296 hostapd=NO		hostapd_flags="-B /etc/hostapd.conf"
    297 wpa_supplicant=NO	wpa_supplicant_flags="-B" # -i<if> -c<file>
    298 
    299 # ISDN daemon
    300 isdnd=NO		isdnd_flags=""
    301 
    302 # Bluetooth daemons
    303 btattach=NO					# Bluetooth attach serial HCI
    304 btconfig=NO					# Bluetooth controller configuration
    305 btdevctl=NO					# Bluetooth device configuration
    306 bthcid=NO		bthcid_flags=""		# Bluetooth HCI daemon
    307 sdpd=NO			sdpd_flags=""		# Service Discovery daemon
    308 
    309 # Other daemons.
    310 #
    311 rwhod=NO		rwhod_flags="-u _rwhod"
    312 envsys=NO					# Set /etc/envsys.conf preferences
    313 
    314 # Hardware daemons.
    315 #
    316 apmd=NO			apmd_flags=""		# APM power management daemon.
    317 powerd=NO		powerd_flags=""		# power management daemon
    318 screenblank=NO		screenblank_flags=""	# wscons and FBIO screenblanker
    319 
    320 moused=NO					# serial mouse handler
    321 			moused_flags="-p /dev/tty00"
    322 
    323 wdogctl=NO					# watchdog timer control
    324 #			wdogctl_flags="-k devicename"
    325 irdaattach=NO					# attach serial lines to IrDA 
    326 			irdaattach_flags="tty00"
    327 
    328 # Configuration of "wscons" console driver virtual screens.
    329 #
    330 wscons=NO		wscons_flags=""		# setup wscons from wscons.conf
    331 
    332 # Configuration of "wsmoused" console driver cut-n-paste support
    333 #
    334 wsmoused=NO		wsmoused_flags=""
    335 
    336 # Configuration of "tpctl" touch panel calibration utility
    337 #
    338 tpctl=NO		tpctl_flags=""
    339 
    340 # Mixer setting
    341 #
    342 mixerctl=NO		mixerctl_mixers=""	# "mixer0 mixer1" means saving
    343 						# and restoring their settings
    344 
    345 # Vi recovery notification.  Vi(1)'s -r option can recover files which were
    346 # accidentally closed.  See vi(1) for more details.
    347 # 
    348 virecover=YES
    349 
    350 # Veriexec signature loading.
    351 #
    352 veriexec=NO
    353 veriexec_strict=0
    354 veriexec_verbose=0
    355 veriexec_flags="-k"
    356