Home | History | Annotate | Line # | Download | only in defaults
rc.conf revision 1.33
      1 #	$NetBSD: rc.conf,v 1.33 2002/03/21 23:08:35 lukem 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 # If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
     32 #
     33 do_rcshutdown=YES
     34 
     35 # If this is non-blank, use as the number of seconds to run a watchdog
     36 # timer which will terminate /etc/rc.shutdown if the timeout expires.
     37 #
     38 rcshutdown_timeout=""
     39 
     40 
     41 # Basic network configuration
     42 #
     43 
     44 # Fully Qualified Internet Domain Name (a.k.a. hostname, e.g. foo.baz.edu).
     45 # If blank, use /etc/myname.
     46 #
     47 hostname=""
     48 
     49 # If there's only one way out of your network, set this to the hostname
     50 # or the IP address of the router that will get your packets off the LAN.
     51 # If blank, use /etc/mygate.
     52 #
     53 defaultroute=""
     54 
     55 # The NIS domain name (formerly known as Yellow Pages); not in any way
     56 # related to Internet domain names.
     57 # If blank, use /etc/defaultdomain.
     58 #
     59 domainname=""
     60 
     61 # Filesystems to mount early in boot-up.
     62 # Note that `/var' is needed in $critical_filesystems_beforenet (or
     63 # implied as part of `/') as certain services that need /var (such as
     64 # dhclient) may be needed to get the network operational enough to mount
     65 # the $critical_filesystems.
     66 #
     67 critical_filesystems_beforenet="/var"
     68 critical_filesystems="/usr"
     69 
     70 # Swap device controls.
     71 #
     72 no_swap=NO		# Set to YES if you have purposefully setup no swap
     73 			# partitions and don't want to be warned about it.
     74 swapoff=NO		# Remove block-type swap partitions upon shutdown
     75 
     76 # One-time actions and programs on boot-up.
     77 #
     78 lkm=NO						# run /etc/rc.lkm
     79 savecore=YES		savecore_flags="-z"
     80 clear_tmp=YES					# clear /tmp after reboot
     81 update_motd=YES					# updates /etc/motd
     82 dmesg=YES		dmesg_flags=""		# write /var/run/dmesg.boot
     83 accounting=NO					# uses /var/account/acct
     84 newsyslog=NO		newsyslog_flags=""	# trim log files
     85 
     86 # NOTE: default coredump name now set in /etc/sysctl.conf
     87 
     88 # Security setting.  If $securelevel is non-empty, the system securelevel
     89 # is set to this value early in the boot sequence.  Otherwise the default
     90 # action is taken (see init(8)).
     91 #
     92 securelevel=""					# securelevel to set to
     93 
     94 # To set the IP address of an interface either use
     95 #  ifconfig_xxN="IP-NO"
     96 # where xxN is the interface.  If this variable is not set then
     97 # contents of the file /etc/ifconfig.xxN is used.
     98 
     99 # Networking startup.
    100 #
    101 ipfilter=NO					# uses /etc/ipf.conf
    102 ipnat=NO					# uses /etc/ipnat.conf
    103 ipfs=NO			ipfs_flags=""		# save/load ipnat and ipf states
    104 ipsec=NO					# uses /etc/ipsec.conf
    105 ipmon=NO		ipmon_flags="-ns"	# syslog ipfilter messages
    106 racoon=NO					# IKE daemon
    107 auto_ifconfig=YES				# config all avail. interfaces
    108 net_interfaces=""				# used only if above is NO
    109 flushroutes=YES					# flush routes in netstart
    110 dhclient=NO					# behave as a DHCP client
    111 			dhclient_flags=""	# blank: config all interfaces
    112 ntpdate=NO  		ntpdate_flags="-b -s"	# May need '-u' thru firewall
    113 ppp_peers=""					# /etc/ppp/peers to call
    114 ip6mode=host					# host, autohost or router
    115 ip6sitelocal=NO					# IPv6 sitelocal addrs
    116 rtsol=NO		rtsol_flags="-a"	# for ip6mode=autohost only
    117 
    118 # Special treatment for interfaces that need to be downed on
    119 # shutdown (because they might cause unecessary costs or block resources
    120 # on the peer). All pppoe* interfaces are automatically included in this
    121 # list, add others here manually.
    122 # force_down_interfaces=""
    123 
    124 ifwatchd=NO	# execute up/down scripts for in-kernel PPPoE interfaces
    125 	ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
    126 
    127 # ALTQ configuration/monitoring daemon
    128 altqd=NO		altqd_flags=""
    129 
    130 # Daemons required by servers.  These are not needed for strictly client use.
    131 #
    132 
    133 # inetd is used to start the IP-based services enabled in /etc/inetd.conf
    134 #
    135 inetd=YES		inetd_flags="-l"	# -l logs libwrap
    136 
    137 # rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
    138 #
    139 rpcbind=NO		rpcbind_flags="-l"	# -l logs libwrap
    140 
    141 # Commonly used daemons.
    142 #
    143 syslogd=YES		syslogd_flags="-s"	# -s "secure" unix domain only
    144 cron=YES
    145 named=NO		named_flags=""		# see below for named_chrootdir
    146 timed=NO		timed_flags=""
    147 ntpd=NO			ntpd_flags=""		# see below for ntpd_chrootdir
    148 sendmail=NO		sendmail_flags="-bd -q30m"
    149 postfix=NO
    150 lpd=NO			lpd_flags="-s"		# -s "secure" unix domain only
    151 sshd=NO			sshd_flags=""
    152 			sshd_conf_dir="/etc/ssh" # directory for sshd conf files
    153 
    154 # To run the named(8) DNS server as an unprivileged user under a
    155 # chroot(2) cage, uncomment the following after migrating the contents
    156 # of /etc/namedb to /var/chroot/named/etc/namedb
    157 #
    158 #named_chrootdir="/var/chroot/named"
    159 
    160 # To run the ntpd(8) NTP server as an unprivileged user under a
    161 # chroot(2) cage, uncomment the following.
    162 #
    163 #ntpd_chrootdir="/var/chroot/ntpd"
    164 
    165 # Routing daemons.
    166 #
    167 routed=NO		routed_flags="-q"
    168 gated=NO
    169 mrouted=NO		mrouted_flags=""
    170 route6d=NO		route6d_flags=""
    171 rtsold=NO		rtsold_flags=""		# for ip6mode=autohost only
    172 
    173 # Daemons used to boot other hosts over a network.
    174 #
    175 rarpd=NO		rarpd_flags="-a"
    176 bootparamd=NO		bootparamd_flags=""
    177 dhcpd=NO		dhcpd_flags="-q"
    178 dhcrelay=NO		dhcrelay_flags=""
    179 rbootd=NO		rbootd_flags=""
    180 mopd=NO			mopd_flags="-a"
    181 ndbootd=NO		ndbootd_flags="-s /tftpboot /tftpboot/bootyy"
    182 rtadvd=NO		rtadvd_flags=""
    183 
    184 # X11 daemons.
    185 #
    186 xfs=NO			xfs_flags=""		# X11 font server
    187 xdm=NO			xdm_flags=""		# X11 display manager; needs
    188 						# wscons=YES for local displays.
    189 
    190 # YP (NIS) daemons.
    191 #
    192 ypbind=NO		ypbind_flags=""
    193 ypserv=NO		ypserv_flags="-d"
    194 yppasswdd=NO		yppasswdd_flags=""
    195 
    196 # NFS daemons and parameters.
    197 #
    198 mountd=NO		mountd_flags=""		# NFS mount requests daemon
    199 nfs_client=NO					# enable client daemons
    200 nfs_server=NO					# enable server daemons
    201 			nfsd_flags="-6tun 4"
    202 lockd=NO		lockd_flags=""
    203 statd=NO		statd_flags=""
    204 amd=NO			amd_flags="-l syslog -x error,noinfo,nostats"
    205 			amd_dir=/amd			# mount dir
    206 
    207 # Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
    208 kdc=NO			kdc_flags=""
    209 
    210 # ISDN daemon
    211 # The network interfaces used for isdn are not useful without the isdnd
    212 # running. Therefore, they are usually configured "down" first (e.g., in 
    213 # /etc/ifconfig.isp0), and need to be marked "up" when the daemon is
    214 # running. This will happen automatically for all configured isdn interfaces
    215 # if the variable isdn_interfaces is left empty. If this behaviour is not
    216 # desired for certain interfaces, set isdn_interfaces to the list of
    217 # interfaces where it should happen. To disable it completely, set
    218 # the variable isdn_autoupdown to NO.
    219 isdnd=NO		isdnd_flags=""
    220 			isdn_autoupdown=YES
    221 			isdn_interfaces=""
    222 
    223 # Other daemons.
    224 #
    225 rwhod=NO
    226 
    227 # Hardware daemons.
    228 #
    229 apmd=NO			apmd_flags=""		# APM power management daemon.
    230 poffd=NO					# x68k power switch monitor
    231 			poffd_flags="'shutdown -p now'"
    232 screenblank=NO		screenblank_flags=""	# wscons and FBIO screenblanker
    233 
    234 moused=NO					# serial mouse handler
    235 			moused_flags="-p /dev/tty00"
    236 
    237 # Configuration of "wscons" console driver virtual screens.
    238 #
    239 wscons=NO		wscons_flags=""		# setup wscons from wscons.conf
    240