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