1 1.167 abs # $NetBSD: rc.conf,v 1.167 2023/10/05 08:19:27 abs Exp $ 2 1.128 tron # 3 1.128 tron # /etc/defaults/rc.conf -- 4 1.128 tron # default configuration of /etc/rc.conf 5 1.128 tron # 6 1.128 tron # see rc.conf(5) for more information. 7 1.128 tron # 8 1.128 tron # DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING A SYSTEM UPGRADE. 9 1.128 tron # EDIT /etc/rc.conf INSTEAD. 10 1.128 tron # 11 1.128 tron 12 1.128 tron # 13 1.128 tron # Use program=YES to enable program, NO to disable it. program_flags are 14 1.128 tron # passed to the program on the command line. 15 1.128 tron # 16 1.128 tron 17 1.128 tron # Uncomment this if you want to use local paths in rc. 18 1.128 tron # 19 1.128 tron #export PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin 20 1.128 tron 21 1.128 tron # Uncomment the following to execute each /etc/rc.d script in 22 1.128 tron # the current shell rather than in a subshell. This may be 23 1.128 tron # faster on very slow machines that have an expensive fork(2). 24 1.128 tron # NOTE: USE THIS AT YOUR OWN RISK; A ROGUE COMMAND 25 1.128 tron # MAY INADVERTENTLY PREVENT BOOT TO MULTIUSER. 26 1.128 tron # 27 1.128 tron #rc_fast_and_loose=YES 28 1.128 tron 29 1.128 tron # If rc_silent is true then /etc/rc will suppress most output to 30 1.128 tron # the console. The default is taken from the AB_SILENT flag passed 31 1.128 tron # from the boot loader to the kernel in the boothowto(9) variable. 32 1.128 tron # 33 1.128 tron # rc_silent_cmd is executed once for each suppressed line of output. 34 1.128 tron # Useful values are ":" and "twiddle". 35 1.128 tron # 36 1.128 tron rc_silent=$( [ "$(( $(/sbin/sysctl -n kern.boothowto 2>/dev/null || echo 0) \ 37 1.128 tron & 0x40000 ))" != 0 ] && echo true || echo false ) 38 1.128 tron rc_silent_cmd=twiddle 39 1.128 tron 40 1.128 tron # Additional flags to the rcorder(8) that's run by /etc/rc. 41 1.128 tron # 42 1.128 tron rc_rcorder_flags="" 43 1.128 tron 44 1.128 tron # The directories searched for rc scripts. 45 1.128 tron # These directories must be part of the root file system. 46 1.128 tron rc_directories=/etc/rc.d 47 1.128 tron 48 1.128 tron # If this is set to NO, shutdown(8) will not run /etc/rc.shutdown. 49 1.128 tron # 50 1.128 tron do_rcshutdown=YES 51 1.128 tron 52 1.128 tron # Additional flags to the rcorder(8) that's run by /etc/rc.shutdown. 53 1.128 tron # 54 1.128 tron rcshutdown_rcorder_flags="" 55 1.128 tron 56 1.128 tron # If this is non-blank, use as the number of seconds to run a watchdog 57 1.128 tron # timer which will terminate /etc/rc.shutdown if the timeout expires. 58 1.128 tron # 59 1.128 tron rcshutdown_timeout="" 60 1.128 tron 61 1.128 tron 62 1.128 tron # Basic network configuration 63 1.128 tron # 64 1.128 tron 65 1.128 tron # Fully Qualified Internet Domain Name (a.k.a. hostname, e.g. foo.baz.edu). 66 1.128 tron # If blank, use /etc/myname. 67 1.128 tron # 68 1.128 tron hostname="" 69 1.128 tron 70 1.128 tron # If there's only one way out of your IPv4 network, set this to the hostname 71 1.128 tron # or the IPv4 address of the router that will get your packets off the LAN. 72 1.128 tron # If blank, use /etc/mygate. 73 1.128 tron # 74 1.128 tron defaultroute="" 75 1.128 tron 76 1.128 tron # Same thing for IPv6. If blank, use /etc/mygate6. 77 1.128 tron # 78 1.128 tron defaultroute6="" 79 1.128 tron 80 1.128 tron # The NIS domain name (formerly known as Yellow Pages); not in any way 81 1.128 tron # related to Internet domain names. 82 1.128 tron # If blank, use /etc/defaultdomain. 83 1.128 tron # 84 1.128 tron domainname="" 85 1.128 tron 86 1.128 tron # Filesystems to mount early in boot-up. 87 1.128 tron # Note that `/var' is needed in $critical_filesystems_local (or 88 1.128 tron # implied as part of `/') as certain services that need /var (such as 89 1.144 roy # dhcpcd) may be needed to get the network operational enough to mount 90 1.128 tron # the $critical_filesystems_remote. Prepending "OPTIONAL:" means it 91 1.128 tron # will not be an error if that file system is not present in fstab(5). 92 1.128 tron # 93 1.128 tron critical_filesystems_local="OPTIONAL:/var" 94 1.128 tron critical_filesystems_remote="OPTIONAL:/usr" 95 1.162 alnsn critical_filesystems_zfs="" 96 1.128 tron 97 1.128 tron # Swap device controls. 98 1.128 tron # 99 1.128 tron no_swap=NO # Set to YES if you have purposefully setup no swap 100 1.128 tron # partitions and don't want to be warned about it. 101 1.128 tron swapoff=YES # Remove block-type swap partitions upon shutdown 102 1.128 tron # This defaults to yes, so that raids shutdown cleanly 103 1.146 martin swapoff_umount=auto # Set to 'manual' to umount the tmpfs partitions listed 104 1.146 martin # in swapoff_umount_fs before removing swap. Set to 105 1.160 msaitoh # 'auto' to umount all tmpfs partitions that contain 106 1.146 martin # no device nodes. 107 1.146 martin swapoff_umount_fs= # space-separated list of tmpfs mount points to umount 108 1.146 martin # before removing swap if swapoff_umount=manual 109 1.128 tron 110 1.128 tron # Concatenated disk driver. 111 1.128 tron # 112 1.128 tron ccd=YES 113 1.128 tron 114 1.128 tron # RAIDframe driver (manually configured devices). 115 1.128 tron # 116 1.128 tron raidframe=YES 117 1.128 tron 118 1.128 tron # Crypto file system. 119 1.128 tron # 120 1.128 tron cgd=YES 121 1.128 tron 122 1.128 tron # Logical Volume Manager 123 1.128 tron # 124 1.128 tron lvm=NO 125 1.128 tron 126 1.128 tron # One-time actions and programs on boot-up. 127 1.128 tron # 128 1.128 tron savecore=YES savecore_flags="-z" 129 1.128 tron savecore_dir="/var/crash" 130 1.155 jmcneill resize_disklabel=NO # resize disklabel to fill disk 131 1.155 jmcneill resize_gpt=NO # resize GPT to fill disk 132 1.133 chopps resize_root=NO # resize root to fill partition 133 1.128 tron per_user_tmp=NO # per-user /tmp directories 134 1.128 tron per_user_tmp_dir="/private/tmp" # real storage for /tmp 135 1.128 tron clear_tmp=YES # clear /tmp after reboot 136 1.128 tron update_motd=YES # updates /etc/motd 137 1.159 kim update_motd_release=NO motd_release_tag="" # release info in /etc/motd 138 1.142 martin dmesg=YES dmesg_flags="-t" # write /var/run/dmesg.boot 139 1.128 tron accounting=NO # uses /var/account/acct 140 1.128 tron newsyslog=NO newsyslog_flags="" # trim log files 141 1.128 tron quota=YES # check and enable quotas 142 1.128 tron ldconfig=YES # rebuild a.out ldconfig cache 143 1.128 tron sysdb=YES # build system databases 144 1.128 tron rndctl=NO rndctl_flags="" # configure rndctl(8) 145 1.128 tron gpio=NO # configure GPIO devices 146 1.132 jmcneill modules=YES # process /etc/modules.conf 147 1.166 riastrad certctl_init=NO # rehash /etc/openssl/certs 148 1.128 tron 149 1.128 tron # cope with other OSes using the real time clock at localtime on this 150 1.128 tron # machine (by adjusting kern.rtc_offset at boot) 151 1.128 tron rtclocaltime=NO 152 1.128 tron 153 1.128 tron # NOTE: default coredump name now set in /etc/sysctl.conf 154 1.128 tron 155 1.128 tron # 156 1.128 tron # File system check flags; default to preen mode, checking file systems 157 1.128 tron # that are listed in /etc/fstab in parallel as the fsck pass number 158 1.128 tron # permits. Fix minor faults automatically, and exit with non 0 only 159 1.128 tron # when major errors occur. 160 1.128 tron # 161 1.128 tron fsck_flags=-p 162 1.128 tron 163 1.128 tron # Security setting. If $securelevel is non-empty, the system securelevel 164 1.128 tron # is set to this value early in the boot sequence. Otherwise the default 165 1.128 tron # action is taken (see init(8)). 166 1.128 tron # 167 1.128 tron securelevel="" # securelevel to set to 168 1.128 tron 169 1.128 tron # To set the IP address of an interface either use 170 1.128 tron # ifconfig_xxN="IP-NO" 171 1.128 tron # where xxN is the interface. If this variable is not set then 172 1.128 tron # contents of the file /etc/ifconfig.xxN is used. 173 1.128 tron 174 1.128 tron # Networking startup. 175 1.128 tron # 176 1.136 roy # Wait up to 15 seconds for the tentative flag to clear from all addresses. 177 1.136 roy # Wait up to 5 seconds for the detached flag to clear from all addresses. 178 1.136 roy # Addresses are detached if there is no carrier, thus we have a small 179 1.136 roy # wait to see if we get a carrier. 180 1.136 roy # Even a wired interface may not recognise it has a carrier right away. 181 1.136 roy ifconfig_wait_dad_flags="-w 15 -W 5" 182 1.136 roy 183 1.128 tron mdnsd=NO 184 1.167 abs npf=NO npf_rules="/etc/npf.conf" 185 1.157 christos npfd=NO npfd_flags="" 186 1.128 tron ipfilter=NO ipfilter_flags="" # uses /etc/ipf.conf 187 1.128 tron ipnat=NO # uses /etc/ipnat.conf 188 1.128 tron ipfs=NO ipfs_flags="" # save/load ipnat and ipf states 189 1.128 tron ipsec=NO # uses /etc/ipsec.conf 190 1.128 tron ipmon=NO ipmon_flags="-Dns" # syslog ipfilter messages 191 1.128 tron pf=NO pf_rules="/etc/pf.conf" pf_flags="" 192 1.128 tron pflogd=NO 193 1.128 tron ftp_proxy=NO 194 1.128 tron racoon=NO # IKE daemon 195 1.128 tron auto_ifconfig=YES # config all avail. interfaces 196 1.128 tron net_interfaces="" # used only if above is NO 197 1.128 tron flushroutes=YES # flush routes in netstart 198 1.144 roy dhcpcd=NO dhcpcd_flags="-qM" # For ifconfig_XXX=dhcp. 199 1.128 tron ntpdate=NO ntpdate_flags="-b -s" # May need '-u' thru firewall 200 1.128 tron ppp=YES ppp_peers="" # /etc/ppp/peers to call 201 1.128 tron ip6mode=host # host, autohost or router 202 1.128 tron ip6uniquelocal=NO # IPv6 unique-local forwarding 203 1.20 martin 204 1.20 martin # Special treatment for interfaces that need to be downed on 205 1.63 dsainty # shutdown (because they might cause unnecessary costs or block resources 206 1.20 martin # on the peer). All pppoe* interfaces are automatically included in this 207 1.20 martin # list, add others here manually. 208 1.44 lukem #force_down_interfaces="" 209 1.25 martin 210 1.25 martin ifwatchd=NO # execute up/down scripts for in-kernel PPPoE interfaces 211 1.25 martin ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0" 212 1.11 thorpej 213 1.11 thorpej # ALTQ configuration/monitoring daemon 214 1.11 thorpej altqd=NO altqd_flags="" 215 1.1 lukem 216 1.1 lukem # Daemons required by servers. These are not needed for strictly client use. 217 1.1 lukem # 218 1.1 lukem 219 1.1 lukem # inetd is used to start the IP-based services enabled in /etc/inetd.conf 220 1.1 lukem # 221 1.1 lukem inetd=YES inetd_flags="-l" # -l logs libwrap 222 1.1 lukem 223 1.55 christos # identd 224 1.55 christos # 225 1.55 christos identd=NO identd_flags="-b -l -u nobody" 226 1.55 christos 227 1.1 lukem # rpcbind (formerly known as 'portmap') is used to look up RPC-based services. 228 1.1 lukem # 229 1.1 lukem rpcbind=NO rpcbind_flags="-l" # -l logs libwrap 230 1.1 lukem 231 1.1 lukem # Commonly used daemons. 232 1.1 lukem # 233 1.1 lukem syslogd=YES syslogd_flags="-s" # -s "secure" unix domain only 234 1.1 lukem cron=YES 235 1.10 lukem named=NO named_flags="" # see below for named_chrootdir 236 1.1 lukem timed=NO timed_flags="" 237 1.26 lukem ntpd=NO ntpd_flags="" # see below for ntpd_chrootdir 238 1.90 pavel # The default setting for postfix here is YES, but gets re-examined by 239 1.90 pavel # the rc.d/postfix startup script when it runs. The script sets 240 1.90 pavel # _rc_d_postfix to "check", and then causes all rc.conf settings to 241 1.90 pavel # be re-evaluated. If the value of $postfix after this is "check", 242 1.90 pavel # the script then checks to see if /etc/mailer.conf selects the system 243 1.90 pavel # postfix. If not, it does print a warning and does not start postfix 244 1.90 pavel # to avoid conflict with a different MTA. 245 1.90 pavel postfix=${_rc_d_postfix:-YES} 246 1.1 lukem lpd=NO lpd_flags="-s" # -s "secure" unix domain only 247 1.1 lukem sshd=NO sshd_flags="" 248 1.121 riastrad ssh_keygen_flags="" 249 1.68 peter ftpd=NO ftpd_flags="-ll" 250 1.97 mishka httpd=NO httpd_flags="" 251 1.97 mishka httpd_wwwdir="/var/www" 252 1.97 mishka httpd_wwwuser="_httpd" 253 1.47 atatat 254 1.10 lukem # To run the named(8) DNS server as an unprivileged user under a 255 1.10 lukem # chroot(2) cage, uncomment the following after migrating the contents 256 1.23 lukem # of /etc/namedb to /var/chroot/named/etc/namedb 257 1.10 lukem # 258 1.23 lukem #named_chrootdir="/var/chroot/named" 259 1.26 lukem 260 1.26 lukem # To run the ntpd(8) NTP server as an unprivileged user under a 261 1.39 lukem # chroot(2) cage, uncomment the following, after ensuring that: 262 1.39 lukem # - The kernel has "pseudo-device clockctl" compiled in 263 1.39 lukem # - /dev/clockctl is present 264 1.26 lukem # 265 1.26 lukem #ntpd_chrootdir="/var/chroot/ntpd" 266 1.1 lukem 267 1.1 lukem # Routing daemons. 268 1.1 lukem # 269 1.1 lukem routed=NO routed_flags="-q" 270 1.13 pk gated=NO 271 1.1 lukem mrouted=NO mrouted_flags="" 272 1.1 lukem route6d=NO route6d_flags="" 273 1.110 kefren ldpd=NO 274 1.1 lukem 275 1.1 lukem # Daemons used to boot other hosts over a network. 276 1.1 lukem # 277 1.1 lukem rarpd=NO rarpd_flags="-a" 278 1.1 lukem bootparamd=NO bootparamd_flags="" 279 1.1 lukem dhcpd=NO dhcpd_flags="-q" 280 1.140 is dhcpd6=NO dhcpd6_flags="-q -cf /etc/dhcpd6.conf" 281 1.1 lukem dhcrelay=NO dhcrelay_flags="" 282 1.1 lukem rbootd=NO rbootd_flags="" 283 1.1 lukem mopd=NO mopd_flags="-a" 284 1.16 fredette ndbootd=NO ndbootd_flags="-s /tftpboot /tftpboot/bootyy" 285 1.1 lukem rtadvd=NO rtadvd_flags="" 286 1.118 tsutsui isibootd=NO isibootd_flags="" 287 1.1 lukem 288 1.1 lukem # X11 daemons. 289 1.1 lukem # 290 1.1 lukem xfs=NO xfs_flags="" # X11 font server 291 1.1 lukem xdm=NO xdm_flags="" # X11 display manager; needs 292 1.1 lukem # wscons=YES for local displays. 293 1.1 lukem 294 1.112 jmcneill # Update fontconfig cache at boot 295 1.112 jmcneill fccache=YES 296 1.112 jmcneill 297 1.1 lukem # YP (NIS) daemons. 298 1.1 lukem # 299 1.1 lukem ypbind=NO ypbind_flags="" 300 1.1 lukem ypserv=NO ypserv_flags="-d" 301 1.1 lukem yppasswdd=NO yppasswdd_flags="" 302 1.1 lukem 303 1.1 lukem # NFS daemons and parameters. 304 1.1 lukem # 305 1.18 lukem mountd=NO mountd_flags="" # NFS mount requests daemon 306 1.1 lukem nfs_client=NO # enable client daemons 307 1.1 lukem nfs_server=NO # enable server daemons 308 1.120 christos nfsd_flags="" 309 1.1 lukem lockd=NO lockd_flags="" 310 1.1 lukem statd=NO statd_flags="" 311 1.1 lukem amd=NO amd_flags="-l syslog -x error,noinfo,nostats" 312 1.1 lukem amd_dir=/amd # mount dir 313 1.1 lukem 314 1.1 lukem # Heimdal Kerberos 5 KDC (with Kerberos IV compatibility) 315 1.91 mlelstv kdc=NO kdc_flags="--detach" 316 1.5 martin 317 1.73 agc # iSCSI target 318 1.73 agc iscsi_target=NO iscsi_target_flags="" 319 1.131 joerg # iSCSI kernel initiator 320 1.131 joerg iscsid=NO 321 1.163 mlelstv # iSCSI attach from /etc/iscsi/volumes 322 1.163 mlelstv iscsid_volumes=YES 323 1.73 agc 324 1.75 rpaulo # WPA daemons. 325 1.153 roy hostapd=NO hostapd_flags="-Bs /etc/hostapd.conf" 326 1.147 roy wpa_supplicant=NO wpa_supplicant_flags="-Ms -c /etc/wpa_supplicant.conf" 327 1.75 rpaulo 328 1.113 plunky # Bluetooth configuration 329 1.113 plunky bluetooth=NO 330 1.113 plunky # and the following are used when bluetooth=YES 331 1.113 plunky btconfig_devices="" # all 332 1.113 plunky bthcid=YES bthcid_flags="" 333 1.113 plunky sdpd=YES sdpd_flags="" 334 1.78 gdamore 335 1.1 lukem # Other daemons. 336 1.1 lukem # 337 1.69 tsarna rwhod=NO rwhod_flags="-u _rwhod" 338 1.115 riz devpubd=NO devpubd_flags="" # autocreate nodes for new devs 339 1.87 xtraeme envsys=NO # Set /etc/envsys.conf preferences 340 1.141 christos autofs=NO automount_flags="" 341 1.141 christos automountd_flags="" 342 1.141 christos autounmountd_flags="" 343 1.1 lukem 344 1.1 lukem # Hardware daemons. 345 1.1 lukem # 346 1.1 lukem apmd=NO apmd_flags="" # APM power management daemon. 347 1.49 thorpej powerd=NO powerd_flags="" # power management daemon 348 1.1 lukem screenblank=NO screenblank_flags="" # wscons and FBIO screenblanker 349 1.24 augustss 350 1.24 augustss moused=NO # serial mouse handler 351 1.24 augustss moused_flags="-p /dev/tty00" 352 1.41 thorpej 353 1.41 thorpej wdogctl=NO # watchdog timer control 354 1.41 thorpej # wdogctl_flags="-k devicename" 355 1.76 rpaulo irdaattach=NO # attach serial lines to IrDA 356 1.76 rpaulo irdaattach_flags="tty00" 357 1.1 lukem 358 1.1 lukem # Configuration of "wscons" console driver virtual screens. 359 1.1 lukem # 360 1.1 lukem wscons=NO wscons_flags="" # setup wscons from wscons.conf 361 1.40 christos 362 1.40 christos # Configuration of "wsmoused" console driver cut-n-paste support 363 1.40 christos # 364 1.40 christos wsmoused=NO wsmoused_flags="" 365 1.42 takemura 366 1.42 takemura # Configuration of "tpctl" touch panel calibration utility 367 1.42 takemura # 368 1.42 takemura tpctl=NO tpctl_flags="" 369 1.43 kent 370 1.43 kent # Mixer setting 371 1.43 kent # 372 1.43 kent mixerctl=NO mixerctl_mixers="" # "mixer0 mixer1" means saving 373 1.43 kent # and restoring their settings 374 1.53 uebayasi 375 1.53 uebayasi # Vi recovery notification. Vi(1)'s -r option can recover files which were 376 1.63 dsainty # accidentally closed. See vi(1) for more details. 377 1.53 uebayasi # 378 1.53 uebayasi virecover=YES 379 1.54 blymn 380 1.82 elad # Veriexec signature loading. 381 1.54 blymn # 382 1.54 blymn veriexec=NO 383 1.70 elad veriexec_strict=0 384 1.70 elad veriexec_verbose=0 385 1.86 elad veriexec_flags="-k" 386 1.114 jym 387 1.117 tls # Entropy load/save to/from /dev/random at startup/shutdown 388 1.117 tls # 389 1.117 tls random_seed=YES 390 1.119 joerg 391 1.161 riastrad # Set to `check' to abort multi-user boot if not enough entropy, or 392 1.164 riastrad # `wait' to wait until enough entropy, or `' (empty) to boot without 393 1.165 nia # waiting or checking. 394 1.161 riastrad # 395 1.164 riastrad entropy="wait" 396 1.161 riastrad 397 1.119 joerg # Creating / updating of man page index on boot 398 1.119 joerg makemandb=YES 399 1.130 christos 400 1.148 maxv # Disable Simultaneous Multi-Threading 401 1.148 maxv smtoff=NO 402 1.148 maxv 403 1.158 christos # blocklist daemon, needs npf 404 1.158 christos blocklistd=NO 405 1.134 christos 406 1.134 christos # IPv6 address selection policy 407 1.135 plunky ip6addrctl=NO 408 1.134 christos # ipv6_prefer, ipv4_prefer, auto 409 1.134 christos ip6addrctl_policy=auto 410 1.134 christos ip6addrctl_verbose=NO 411 1.137 christos 412 1.137 christos # Unbound 413 1.137 christos unbound=NO 414 1.137 christos unbound_chrootdir=/var/chroot/unbound 415 1.139 christos 416 1.139 christos # Nsd 417 1.139 christos nsd=NO 418 1.139 christos nsd_chrootdir=/var/chroot/nsd 419 1.139 christos nsd_flags="-t ${nsd_chrootdir}" 420 1.152 brad 421 1.152 brad # ZFS 422 1.152 brad zfs=NO 423