1 # $NetBSD: rc.conf,v 1.133 2015/03/30 10:58:37 chopps Exp $
3 # /etc/defaults/rc.conf --
4 # default configuration of /etc/rc.conf
6 # see rc.conf(5) for more information.
8 # DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING A SYSTEM UPGRADE.
9 # EDIT /etc/rc.conf INSTEAD.
13 # Use program=YES to enable program, NO to disable it. program_flags are
14 # passed to the program on the command line.
17 # Uncomment this if you want to use local paths in rc.
19 #export PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin
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.
27 #rc_fast_and_loose=YES
29 # If rc_silent is true then /etc/rc will suppress most output to
30 # the console. The default is taken from the AB_SILENT flag passed
31 # from the boot loader to the kernel in the boothowto(9) variable.
33 # rc_silent_cmd is executed once for each suppressed line of output.
34 # Useful values are ":" and "twiddle".
36 rc_silent=$( [ "$(( $(/sbin/sysctl -n kern.boothowto 2>/dev/null || echo 0) \
37 & 0x40000 ))" != 0 ] && echo true || echo false )
40 # Additional flags to the rcorder(8) that's run by /etc/rc.
44 # The directories searched for rc scripts.
45 # These directories must be part of the root file system.
46 rc_directories=/etc/rc.d
48 # If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
52 # Additional flags to the rcorder(8) that's run by /etc/rc.shutdown.
54 rcshutdown_rcorder_flags=""
56 # If this is non-blank, use as the number of seconds to run a watchdog
57 # timer which will terminate /etc/rc.shutdown if the timeout expires.
62 # Basic network configuration
65 # Fully Qualified Internet Domain Name (a.k.a. hostname, e.g. foo.baz.edu).
66 # If blank, use /etc/myname.
70 # If there's only one way out of your IPv4 network, set this to the hostname
71 # or the IPv4 address of the router that will get your packets off the LAN.
72 # If blank, use /etc/mygate.
76 # Same thing for IPv6. If blank, use /etc/mygate6.
80 # The NIS domain name (formerly known as Yellow Pages); not in any way
81 # related to Internet domain names.
82 # If blank, use /etc/defaultdomain.
86 # Filesystems to mount early in boot-up.
87 # Note that `/var' is needed in $critical_filesystems_local (or
88 # implied as part of `/') as certain services that need /var (such as
89 # dhclient) may be needed to get the network operational enough to mount
90 # the $critical_filesystems_remote. Prepending "OPTIONAL:" means it
91 # will not be an error if that file system is not present in fstab(5).
93 critical_filesystems_local="OPTIONAL:/var"
94 critical_filesystems_remote="OPTIONAL:/usr"
96 # Swap device controls.
98 no_swap=NO # Set to YES if you have purposefully setup no swap
99 # partitions and don't want to be warned about it.
100 swapoff=YES # Remove block-type swap partitions upon shutdown
101 # This defaults to yes, so that raids shutdown cleanly
103 # Concatenated disk driver.
107 # RAIDframe driver (manually configured devices).
111 # Crypto file system.
115 # Logical Volume Manager
119 # One-time actions and programs on boot-up.
121 savecore=YES savecore_flags="-z"
122 savecore_dir="/var/crash"
123 resize_root=NO # resize root to fill partition
124 per_user_tmp=NO # per-user /tmp directories
125 per_user_tmp_dir="/private/tmp" # real storage for /tmp
126 clear_tmp=YES # clear /tmp after reboot
127 update_motd=YES # updates /etc/motd
128 dmesg=YES dmesg_flags="" # write /var/run/dmesg.boot
129 accounting=NO # uses /var/account/acct
130 newsyslog=NO newsyslog_flags="" # trim log files
131 quota=YES # check and enable quotas
132 ldconfig=YES # rebuild a.out ldconfig cache
133 sysdb=YES # build system databases
134 rndctl=NO rndctl_flags="" # configure rndctl(8)
135 gpio=NO # configure GPIO devices
136 modules=YES # process /etc/modules.conf
138 # cope with other OSes using the real time clock at localtime on this
139 # machine (by adjusting kern.rtc_offset at boot)
142 # NOTE: default coredump name now set in /etc/sysctl.conf
145 # File system check flags; default to preen mode, checking file systems
146 # that are listed in /etc/fstab in parallel as the fsck pass number
147 # permits. Fix minor faults automatically, and exit with non 0 only
148 # when major errors occur.
152 # Security setting. If $securelevel is non-empty, the system securelevel
153 # is set to this value early in the boot sequence. Otherwise the default
154 # action is taken (see init(8)).
156 securelevel="" # securelevel to set to
158 # To set the IP address of an interface either use
159 # ifconfig_xxN="IP-NO"
160 # where xxN is the interface. If this variable is not set then
161 # contents of the file /etc/ifconfig.xxN is used.
163 # Networking startup.
167 ipfilter=NO ipfilter_flags="" # uses /etc/ipf.conf
168 ipnat=NO # uses /etc/ipnat.conf
169 ipfs=NO ipfs_flags="" # save/load ipnat and ipf states
170 ipsec=NO # uses /etc/ipsec.conf
171 ipmon=NO ipmon_flags="-Dns" # syslog ipfilter messages
172 pf=NO pf_rules="/etc/pf.conf" pf_flags=""
175 racoon=NO # IKE daemon
176 auto_ifconfig=YES # config all avail. interfaces
177 net_interfaces="" # used only if above is NO
178 flushroutes=YES # flush routes in netstart
180 dhcpcd_flags="-qM" # For ifconfig_XXX=dhcp.
181 dhclient=NO # behave as a DHCP client
182 dhclient_flags="" # blank: config all interfaces
183 ntpdate=NO ntpdate_flags="-b -s" # May need '-u' thru firewall
184 ppp=YES ppp_peers="" # /etc/ppp/peers to call
185 ip6mode=host # host, autohost or router
186 ip6uniquelocal=NO # IPv6 unique-local forwarding
188 # Special treatment for interfaces that need to be downed on
189 # shutdown (because they might cause unnecessary costs or block resources
190 # on the peer). All pppoe* interfaces are automatically included in this
191 # list, add others here manually.
192 #force_down_interfaces=""
194 ifwatchd=NO # execute up/down scripts for in-kernel PPPoE interfaces
195 ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
197 # ALTQ configuration/monitoring daemon
198 altqd=NO altqd_flags=""
200 # Daemons required by servers. These are not needed for strictly client use.
203 # inetd is used to start the IP-based services enabled in /etc/inetd.conf
205 inetd=YES inetd_flags="-l" # -l logs libwrap
209 identd=NO identd_flags="-b -l -u nobody"
211 # rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
213 rpcbind=NO rpcbind_flags="-l" # -l logs libwrap
215 # Commonly used daemons.
217 syslogd=YES syslogd_flags="-s" # -s "secure" unix domain only
219 named=NO named_flags="" # see below for named_chrootdir
220 timed=NO timed_flags=""
221 ntpd=NO ntpd_flags="" # see below for ntpd_chrootdir
222 # The default setting for postfix here is YES, but gets re-examined by
223 # the rc.d/postfix startup script when it runs. The script sets
224 # _rc_d_postfix to "check", and then causes all rc.conf settings to
225 # be re-evaluated. If the value of $postfix after this is "check",
226 # the script then checks to see if /etc/mailer.conf selects the system
227 # postfix. If not, it does print a warning and does not start postfix
228 # to avoid conflict with a different MTA.
229 postfix=${_rc_d_postfix:-YES}
230 lpd=NO lpd_flags="-s" # -s "secure" unix domain only
231 sshd=NO sshd_flags=""
233 ftpd=NO ftpd_flags="-ll"
234 httpd=NO httpd_flags=""
235 httpd_wwwdir="/var/www"
236 httpd_wwwuser="_httpd"
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
242 #named_chrootdir="/var/chroot/named"
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
249 #ntpd_chrootdir="/var/chroot/ntpd"
253 routed=NO routed_flags="-q"
255 mrouted=NO mrouted_flags=""
256 route6d=NO route6d_flags=""
259 # Daemons used to boot other hosts over a network.
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 isibootd=NO isibootd_flags=""
273 xfs=NO xfs_flags="" # X11 font server
274 xdm=NO xdm_flags="" # X11 display manager; needs
275 # wscons=YES for local displays.
277 # Update fontconfig cache at boot
282 ypbind=NO ypbind_flags=""
283 ypserv=NO ypserv_flags="-d"
284 yppasswdd=NO yppasswdd_flags=""
286 # NFS daemons and parameters.
288 mountd=NO mountd_flags="" # NFS mount requests daemon
289 nfs_client=NO # enable client daemons
290 nfs_server=NO # enable server daemons
292 lockd=NO lockd_flags=""
293 statd=NO statd_flags=""
294 amd=NO amd_flags="-l syslog -x error,noinfo,nostats"
295 amd_dir=/amd # mount dir
297 # Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
298 kdc=NO kdc_flags="--detach"
301 iscsi_target=NO iscsi_target_flags=""
302 # iSCSI kernel initiator
306 hostapd=NO hostapd_flags="-B /etc/hostapd.conf"
307 wpa_supplicant=NO wpa_supplicant_flags="" # -i<if> -c<file>
310 isdnd=NO isdnd_flags=""
312 # Bluetooth configuration
314 # and the following are used when bluetooth=YES
315 btconfig_devices="" # all
316 bthcid=YES bthcid_flags=""
317 sdpd=YES sdpd_flags=""
321 rwhod=NO rwhod_flags="-u _rwhod"
322 devpubd=NO devpubd_flags="" # autocreate nodes for new devs
323 envsys=NO # Set /etc/envsys.conf preferences
327 apmd=NO apmd_flags="" # APM power management daemon.
328 powerd=NO powerd_flags="" # power management daemon
329 screenblank=NO screenblank_flags="" # wscons and FBIO screenblanker
331 moused=NO # serial mouse handler
332 moused_flags="-p /dev/tty00"
334 wdogctl=NO # watchdog timer control
335 # wdogctl_flags="-k devicename"
336 irdaattach=NO # attach serial lines to IrDA
337 irdaattach_flags="tty00"
339 # Configuration of "wscons" console driver virtual screens.
341 wscons=NO wscons_flags="" # setup wscons from wscons.conf
343 # Configuration of "wsmoused" console driver cut-n-paste support
345 wsmoused=NO wsmoused_flags=""
347 # Configuration of "tpctl" touch panel calibration utility
349 tpctl=NO tpctl_flags=""
353 mixerctl=NO mixerctl_mixers="" # "mixer0 mixer1" means saving
354 # and restoring their settings
356 # Vi recovery notification. Vi(1)'s -r option can recover files which were
357 # accidentally closed. See vi(1) for more details.
361 # Veriexec signature loading.
368 # Entropy load/save to/from /dev/random at startup/shutdown
372 # Creating / updating of man page index on boot
375 # blacklist daemon, needs npf
378 # Start of MINIX 3 specific settings block
379 if [ -r /etc/defaults/minix.rc.conf ]; then
380 . /etc/defaults/minix.rc.conf
382 # End of MINIX 3 specific settings block