Home | History | Annotate | Line # | Download | only in defaults
rc.conf revision 1.57
      1 #	$NetBSD: rc.conf,v 1.57 2004/04/04 13:59:36 mrg 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 network, set this to the hostname
     58 # or the IP address of the router that will get your packets off the LAN.
     59 # If blank, use /etc/mygate.
     60 #
     61 defaultroute=""
     62 
     63 # The NIS domain name (formerly known as Yellow Pages); not in any way
     64 # related to Internet domain names.
     65 # If blank, use /etc/defaultdomain.
     66 #
     67 domainname=""
     68 
     69 # Filesystems to mount early in boot-up.
     70 # Note that `/var' is needed in $critical_filesystems_local (or
     71 # implied as part of `/') as certain services that need /var (such as
     72 # dhclient) may be needed to get the network operational enough to mount
     73 # the $critical_filesystems_remote.
     74 #
     75 critical_filesystems_local="/var"
     76 critical_filesystems_remote="/usr"
     77 
     78 # Swap device controls.
     79 #
     80 no_swap=NO		# Set to YES if you have purposefully setup no swap
     81 			# partitions and don't want to be warned about it.
     82 swapoff=NO		# Remove block-type swap partitions upon shutdown
     83 
     84 # Concatenated disk driver.
     85 #
     86 ccd=YES
     87 
     88 # RAIDframe driver (manually configured devices).
     89 #
     90 raidframe=YES
     91 
     92 # Crypto file system.
     93 #
     94 cgd=YES
     95 
     96 # One-time actions and programs on boot-up.
     97 #
     98 lkm=NO			# Run /etc/rc.lkm.  /usr needs to be part of /, or
     99 			# part of critical_filesystems_local.
    100 
    101 savecore=YES		savecore_flags="-z"
    102 clear_tmp=YES					# clear /tmp after reboot
    103 update_motd=YES					# updates /etc/motd
    104 dmesg=YES		dmesg_flags=""		# write /var/run/dmesg.boot
    105 accounting=NO					# uses /var/account/acct
    106 newsyslog=NO		newsyslog_flags=""	# trim log files
    107 
    108 # cope with other OSes using the real time clock at localtime on this
    109 # machine (by adjusting kern.rtc_offset at boot)
    110 rtclocaltime=NO
    111 
    112 # NOTE: default coredump name now set in /etc/sysctl.conf
    113 
    114 #
    115 # File system check flags; default to preen mode, checking filesystems
    116 # that are listed in /etc/fstab in parallel as the fsck pass number
    117 # permits. Fix minor faults automatically, and exit with non 0 only
    118 # when major errors occur.
    119 #
    120 fsck_flags=-p
    121 
    122 # Security setting.  If $securelevel is non-empty, the system securelevel
    123 # is set to this value early in the boot sequence.  Otherwise the default
    124 # action is taken (see init(8)).
    125 #
    126 securelevel=""					# securelevel to set to
    127 
    128 # To set the IP address of an interface either use
    129 #  ifconfig_xxN="IP-NO"
    130 # where xxN is the interface.  If this variable is not set then
    131 # contents of the file /etc/ifconfig.xxN is used.
    132 
    133 # Networking startup.
    134 #
    135 ipfilter=NO					# uses /etc/ipf.conf
    136 ipnat=NO					# uses /etc/ipnat.conf
    137 ipfs=NO			ipfs_flags=""		# save/load ipnat and ipf states
    138 ipsec=NO					# uses /etc/ipsec.conf
    139 ipmon=NO		ipmon_flags="-Dns"	# syslog ipfilter messages
    140 racoon=NO					# IKE daemon
    141 auto_ifconfig=YES				# config all avail. interfaces
    142 net_interfaces=""				# used only if above is NO
    143 flushroutes=YES					# flush routes in netstart
    144 dhclient=NO					# behave as a DHCP client
    145 			dhclient_flags=""	# blank: config all interfaces
    146 ntpdate=NO  		ntpdate_flags="-b -s"	# May need '-u' thru firewall
    147 ppp_peers=""					# /etc/ppp/peers to call
    148 ip6mode=host					# host, autohost or router
    149 ip6sitelocal=NO					# IPv6 sitelocal addrs
    150 rtsol=NO		rtsol_flags="-a"	# for ip6mode=autohost only
    151 
    152 # Special treatment for interfaces that need to be downed on
    153 # shutdown (because they might cause unecessary costs or block resources
    154 # on the peer). All pppoe* interfaces are automatically included in this
    155 # list, add others here manually.
    156 #force_down_interfaces=""
    157 
    158 ifwatchd=NO	# execute up/down scripts for in-kernel PPPoE interfaces
    159 	ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
    160 
    161 # ALTQ configuration/monitoring daemon
    162 altqd=NO		altqd_flags=""
    163 
    164 # Daemons required by servers.  These are not needed for strictly client use.
    165 #
    166 
    167 # inetd is used to start the IP-based services enabled in /etc/inetd.conf
    168 #
    169 inetd=YES		inetd_flags="-l"	# -l logs libwrap
    170 
    171 # identd
    172 #
    173 identd=NO		identd_flags="-b -l -u nobody"
    174 
    175 # rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
    176 #
    177 rpcbind=NO		rpcbind_flags="-l"	# -l logs libwrap
    178 
    179 # Commonly used daemons.
    180 #
    181 syslogd=YES		syslogd_flags="-s"	# -s "secure" unix domain only
    182 cron=YES
    183 named=NO		named_flags=""		# see below for named_chrootdir
    184 timed=NO		timed_flags=""
    185 ntpd=NO			ntpd_flags=""		# see below for ntpd_chrootdir
    186 postfix=NO
    187 lpd=NO			lpd_flags="-s"		# -s "secure" unix domain only
    188 sshd=NO			sshd_flags=""
    189 ssh_keygen_flags="-b 1024"	# generate 1024 bit keys if host keys missing
    190 
    191 # sendmail can now be run either as a suid root binary or as a sgid
    192 # smmsp binary.  In the former case, you must not have the file
    193 # /etc/mail/submit.cf, otherwise sendmail will behave as if it was
    194 # sgid.  This can result in mail not being delivered.
    195 #
    196 # For those people who wish only to send mail (locally or remotely),
    197 # but not receive mail (via the network) in the sgid case, you must
    198 # also run the sendmail daemon with one of the following two options:
    199 #
    200 #	-ODaemonPortOptions=Family=inet,Addr=127.0.0.1,Name=MTA
    201 #	-ODaemonPortOptions=Family=inet6,Addr=::1,Name=MTA6
    202 #
    203 # The smmsp process is a sendmail helper that periodically flushes the
    204 # "client" queue in the sgid case.  If you are using sendmail as a
    205 # suid root program, then smmsp is not needed.
    206 #
    207 sendmail=NO		sendmail_flags="-Lsm-mta -bd -q30m"
    208 sendmail_suidroot=NO
    209 smmsp=NO		smmsp_flags="-Lsm-msp-queue -Ac -q30m"
    210 
    211 
    212 # To run the named(8) DNS server as an unprivileged user under a
    213 # chroot(2) cage, uncomment the following after migrating the contents
    214 # of /etc/namedb to /var/chroot/named/etc/namedb
    215 #
    216 #named_chrootdir="/var/chroot/named"
    217 
    218 # To run the ntpd(8) NTP server as an unprivileged user under a
    219 # chroot(2) cage, uncomment the following, after ensuring that:
    220 #	- The kernel has "pseudo-device clockctl" compiled in
    221 #	- /dev/clockctl is present
    222 #
    223 #ntpd_chrootdir="/var/chroot/ntpd"
    224 
    225 # Routing daemons.
    226 #
    227 routed=NO		routed_flags="-q"
    228 gated=NO
    229 mrouted=NO		mrouted_flags=""
    230 route6d=NO		route6d_flags=""
    231 rtsold=NO		rtsold_flags=""		# for ip6mode=autohost only
    232 
    233 # Daemons used to boot other hosts over a network.
    234 #
    235 rarpd=NO		rarpd_flags="-a"
    236 bootparamd=NO		bootparamd_flags=""
    237 dhcpd=NO		dhcpd_flags="-q"
    238 dhcrelay=NO		dhcrelay_flags=""
    239 rbootd=NO		rbootd_flags=""
    240 mopd=NO			mopd_flags="-a"
    241 ndbootd=NO		ndbootd_flags="-s /tftpboot /tftpboot/bootyy"
    242 rtadvd=NO		rtadvd_flags=""
    243 
    244 # X11 daemons.
    245 #
    246 xfs=NO			xfs_flags=""		# X11 font server
    247 xdm=NO			xdm_flags=""		# X11 display manager; needs
    248 						# wscons=YES for local displays.
    249 
    250 # YP (NIS) daemons.
    251 #
    252 ypbind=NO		ypbind_flags=""
    253 ypserv=NO		ypserv_flags="-d"
    254 yppasswdd=NO		yppasswdd_flags=""
    255 
    256 # NFS daemons and parameters.
    257 #
    258 mountd=NO		mountd_flags=""		# NFS mount requests daemon
    259 nfs_client=NO					# enable client daemons
    260 nfs_server=NO					# enable server daemons
    261 			nfsd_flags="-6tun 4"
    262 lockd=NO		lockd_flags=""
    263 statd=NO		statd_flags=""
    264 amd=NO			amd_flags="-l syslog -x error,noinfo,nostats"
    265 			amd_dir=/amd			# mount dir
    266 
    267 # Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
    268 kdc=NO			kdc_flags=""
    269 
    270 # ISDN daemon
    271 isdnd=NO		isdnd_flags=""
    272 
    273 # Other daemons.
    274 #
    275 rwhod=NO
    276 
    277 # Hardware daemons.
    278 #
    279 apmd=NO			apmd_flags=""		# APM power management daemon.
    280 poffd=NO					# x68k power switch monitor
    281 			poffd_flags="'shutdown -p now'"
    282 powerd=NO		powerd_flags=""		# power management daemon
    283 screenblank=NO		screenblank_flags=""	# wscons and FBIO screenblanker
    284 
    285 moused=NO					# serial mouse handler
    286 			moused_flags="-p /dev/tty00"
    287 
    288 wdogctl=NO					# watchdog timer control
    289 #			wdogctl_flags="-k devicename"
    290 
    291 # Configuration of "wscons" console driver virtual screens.
    292 #
    293 wscons=NO		wscons_flags=""		# setup wscons from wscons.conf
    294 
    295 # Configuration of "wsmoused" console driver cut-n-paste support
    296 #
    297 wsmoused=NO		wsmoused_flags=""
    298 
    299 # Configuration of "tpctl" touch panel calibration utility
    300 #
    301 tpctl=NO		tpctl_flags=""
    302 
    303 # Mixer setting
    304 #
    305 mixerctl=NO		mixerctl_mixers=""	# "mixer0 mixer1" means saving
    306 						# and restoring their settings
    307 
    308 # Vi recovery notification.  Vi(1)'s -r option can recover files which were
    309 # accidentaly closed.  See vi(1) for more details.
    310 # 
    311 virecover=YES
    312 
    313 # Verified exec signature loading.
    314 #
    315 veriexec=NO
    316