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