xref: /netbsd/etc/defaults/rc.conf (revision c4a72b64)
1#	$NetBSD: rc.conf,v 1.43 2002/10/12 11:29:28 kent 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#
33rc_rcorder_flags=""
34
35# If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
36#
37do_rcshutdown=YES
38
39# Additional flags to the rcorder(8) that's run by /etc/rc.shutdown.
40#
41rcshutdown_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#
46rcshutdown_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#
55hostname=""
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#
61defaultroute=""
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#
67domainname=""
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#
75critical_filesystems_local="/var"
76critical_filesystems_remote="/usr"
77
78# Swap device controls.
79#
80no_swap=NO		# Set to YES if you have purposefully setup no swap
81			# partitions and don't want to be warned about it.
82swapoff=NO		# Remove block-type swap partitions upon shutdown
83
84# One-time actions and programs on boot-up.
85#
86lkm=NO						# run /etc/rc.lkm
87savecore=YES		savecore_flags="-z"
88clear_tmp=YES					# clear /tmp after reboot
89update_motd=YES					# updates /etc/motd
90dmesg=YES		dmesg_flags=""		# write /var/run/dmesg.boot
91accounting=NO					# uses /var/account/acct
92newsyslog=NO		newsyslog_flags=""	# trim log files
93
94# NOTE: default coredump name now set in /etc/sysctl.conf
95
96# Security setting.  If $securelevel is non-empty, the system securelevel
97# is set to this value early in the boot sequence.  Otherwise the default
98# action is taken (see init(8)).
99#
100securelevel=""					# securelevel to set to
101
102# To set the IP address of an interface either use
103#  ifconfig_xxN="IP-NO"
104# where xxN is the interface.  If this variable is not set then
105# contents of the file /etc/ifconfig.xxN is used.
106
107# Networking startup.
108#
109ipfilter=NO					# uses /etc/ipf.conf
110ipnat=NO					# uses /etc/ipnat.conf
111ipfs=NO			ipfs_flags=""		# save/load ipnat and ipf states
112ipsec=NO					# uses /etc/ipsec.conf
113ipmon=NO		ipmon_flags="-ns"	# syslog ipfilter messages
114racoon=NO					# IKE daemon
115auto_ifconfig=YES				# config all avail. interfaces
116net_interfaces=""				# used only if above is NO
117flushroutes=YES					# flush routes in netstart
118dhclient=NO					# behave as a DHCP client
119			dhclient_flags=""	# blank: config all interfaces
120ntpdate=NO  		ntpdate_flags="-b -s"	# May need '-u' thru firewall
121ppp_peers=""					# /etc/ppp/peers to call
122ip6mode=host					# host, autohost or router
123ip6sitelocal=NO					# IPv6 sitelocal addrs
124rtsol=NO		rtsol_flags="-a"	# for ip6mode=autohost only
125
126# Special treatment for interfaces that need to be downed on
127# shutdown (because they might cause unecessary costs or block resources
128# on the peer). All pppoe* interfaces are automatically included in this
129# list, add others here manually.
130# force_down_interfaces=""
131
132ifwatchd=NO	# execute up/down scripts for in-kernel PPPoE interfaces
133	ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
134
135# ALTQ configuration/monitoring daemon
136altqd=NO		altqd_flags=""
137
138# Daemons required by servers.  These are not needed for strictly client use.
139#
140
141# inetd is used to start the IP-based services enabled in /etc/inetd.conf
142#
143inetd=YES		inetd_flags="-l"	# -l logs libwrap
144
145# rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
146#
147rpcbind=NO		rpcbind_flags="-l"	# -l logs libwrap
148
149# Commonly used daemons.
150#
151syslogd=YES		syslogd_flags="-s"	# -s "secure" unix domain only
152cron=YES
153named=NO		named_flags=""		# see below for named_chrootdir
154timed=NO		timed_flags=""
155ntpd=NO			ntpd_flags=""		# see below for ntpd_chrootdir
156sendmail=NO		sendmail_flags="-bd -q30m"
157postfix=NO
158lpd=NO			lpd_flags="-s"		# -s "secure" unix domain only
159sshd=NO			sshd_flags=""
160
161# To run the named(8) DNS server as an unprivileged user under a
162# chroot(2) cage, uncomment the following after migrating the contents
163# of /etc/namedb to /var/chroot/named/etc/namedb
164#
165#named_chrootdir="/var/chroot/named"
166
167# To run the ntpd(8) NTP server as an unprivileged user under a
168# chroot(2) cage, uncomment the following, after ensuring that:
169#	- The kernel has "pseudo-device clockctl" compiled in
170#	- /dev/clockctl is present
171#
172#ntpd_chrootdir="/var/chroot/ntpd"
173
174# Routing daemons.
175#
176routed=NO		routed_flags="-q"
177gated=NO
178mrouted=NO		mrouted_flags=""
179route6d=NO		route6d_flags=""
180rtsold=NO		rtsold_flags=""		# for ip6mode=autohost only
181
182# Daemons used to boot other hosts over a network.
183#
184rarpd=NO		rarpd_flags="-a"
185bootparamd=NO		bootparamd_flags=""
186dhcpd=NO		dhcpd_flags="-q"
187dhcrelay=NO		dhcrelay_flags=""
188rbootd=NO		rbootd_flags=""
189mopd=NO			mopd_flags="-a"
190ndbootd=NO		ndbootd_flags="-s /tftpboot /tftpboot/bootyy"
191rtadvd=NO		rtadvd_flags=""
192
193# X11 daemons.
194#
195xfs=NO			xfs_flags=""		# X11 font server
196xdm=NO			xdm_flags=""		# X11 display manager; needs
197						# wscons=YES for local displays.
198
199# YP (NIS) daemons.
200#
201ypbind=NO		ypbind_flags=""
202ypserv=NO		ypserv_flags="-d"
203yppasswdd=NO		yppasswdd_flags=""
204
205# NFS daemons and parameters.
206#
207mountd=NO		mountd_flags=""		# NFS mount requests daemon
208nfs_client=NO					# enable client daemons
209nfs_server=NO					# enable server daemons
210			nfsd_flags="-6tun 4"
211lockd=NO		lockd_flags=""
212statd=NO		statd_flags=""
213amd=NO			amd_flags="-l syslog -x error,noinfo,nostats"
214			amd_dir=/amd			# mount dir
215
216# Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
217kdc=NO			kdc_flags=""
218
219# ISDN daemon
220isdnd=NO		isdnd_flags=""
221
222# Other daemons.
223#
224rwhod=NO
225
226# Hardware daemons.
227#
228apmd=NO			apmd_flags=""		# APM power management daemon.
229poffd=NO					# x68k power switch monitor
230			poffd_flags="'shutdown -p now'"
231screenblank=NO		screenblank_flags=""	# wscons and FBIO screenblanker
232
233moused=NO					# serial mouse handler
234			moused_flags="-p /dev/tty00"
235
236wdogctl=NO					# watchdog timer control
237#			wdogctl_flags="-k devicename"
238
239# Configuration of "wscons" console driver virtual screens.
240#
241wscons=NO		wscons_flags=""		# setup wscons from wscons.conf
242
243# Configuration of "wsmoused" console driver cut-n-paste support
244#
245wsmoused=NO		wsmoused_flags=""
246
247# Configuration of "tpctl" touch panel calibration utility
248#
249tpctl=NO		tpctl_flags=""
250
251# Mixer setting
252#
253mixerctl=NO		mixerctl_mixers=""	# "mixer0 mixer1" means saving
254						# and restoring their settings
255