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