1*1a2912f5Sroy.\" $NetBSD: rc.conf.5,v 1.194 2024/10/02 15:56:37 roy Exp $ 25fb9b573Smrg.\" 35fb9b573Smrg.\" Copyright (c) 1996 Matthew R. Green 404f2afbeSmrg.\" All rights reserved. 504f2afbeSmrg.\" 604f2afbeSmrg.\" Redistribution and use in source and binary forms, with or without 704f2afbeSmrg.\" modification, are permitted provided that the following conditions 804f2afbeSmrg.\" are met: 904f2afbeSmrg.\" 1. Redistributions of source code must retain the above copyright 1004f2afbeSmrg.\" notice, this list of conditions and the following disclaimer. 1104f2afbeSmrg.\" 2. Redistributions in binary form must reproduce the above copyright 1204f2afbeSmrg.\" notice, this list of conditions and the following disclaimer in the 1304f2afbeSmrg.\" documentation and/or other materials provided with the distribution. 1404f2afbeSmrg.\" 1504f2afbeSmrg.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1604f2afbeSmrg.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1704f2afbeSmrg.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1804f2afbeSmrg.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 1904f2afbeSmrg.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 2004f2afbeSmrg.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 2104f2afbeSmrg.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 2204f2afbeSmrg.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2304f2afbeSmrg.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2404f2afbeSmrg.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2504f2afbeSmrg.\" SUCH DAMAGE. 2604f2afbeSmrg.\" 27cdd442b6Scjs.\" Copyright (c) 1997 Curt J. Sampson 28698eafc2Smikel.\" Copyright (c) 1997 Michael W. Long 29b1f54665Sjruoho.\" Copyright (c) 1998-2010 The NetBSD Foundation, Inc. 305fb9b573Smrg.\" All rights reserved. 315fb9b573Smrg.\" 32ba16b62dSlukem.\" This document is derived from works contributed to The NetBSD Foundation 33ba16b62dSlukem.\" by Luke Mewburn. 34ba16b62dSlukem.\" 355fb9b573Smrg.\" Redistribution and use in source and binary forms, with or without 365fb9b573Smrg.\" modification, are permitted provided that the following conditions 375fb9b573Smrg.\" are met: 385fb9b573Smrg.\" 1. Redistributions of source code must retain the above copyright 395fb9b573Smrg.\" notice, this list of conditions and the following disclaimer. 405fb9b573Smrg.\" 2. Redistributions in binary form must reproduce the above copyright 415fb9b573Smrg.\" notice, this list of conditions and the following disclaimer in the 425fb9b573Smrg.\" documentation and/or other materials provided with the distribution. 4374f573d8Smrg.\" 3. The name of the author may not be used to endorse or promote products 445fb9b573Smrg.\" derived from this software without specific prior written permission. 455fb9b573Smrg.\" 465fb9b573Smrg.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 475fb9b573Smrg.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 485fb9b573Smrg.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 495fb9b573Smrg.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 505fb9b573Smrg.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 515fb9b573Smrg.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 525fb9b573Smrg.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 535fb9b573Smrg.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 545fb9b573Smrg.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 555fb9b573Smrg.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 565fb9b573Smrg.\" SUCH DAMAGE. 575fb9b573Smrg.\" 58*1a2912f5Sroy.Dd October 2, 2024 595fb9b573Smrg.Dt RC.CONF 5 607a1aea16Sgarbled.Os 615fb9b573Smrg.Sh NAME 625fb9b573Smrg.Nm rc.conf 635fb9b573Smrg.Nd system startup configuration file 645fb9b573Smrg.Sh DESCRIPTION 655fb9b573SmrgThe 665fb9b573Smrg.Nm 675fb9b573Smrgfile specifies which services are enabled during system startup by 685ab1f61bSlukemthe startup scripts invoked by 699b40da66Slukem.Pa /etc/rc 709b40da66Slukem(see 719b40da66Slukem.Xr rc 8 ) , 729b40da66Slukemand the shutdown scripts invoked by 739b40da66Slukem.Pa /etc/rc.shutdown . 745fb9b573SmrgThe 755fb9b573Smrg.Nm 765fb9b573Smrgfile is a shell script that is sourced by 779b40da66Slukem.Xr rc 8 , 789b40da66Slukemmeaning that 795fb9b573Smrg.Nm 80698eafc2Smikelmust contain valid shell commands. 815fb9b573Smrg.Pp 829f398029SabsListed below are the standard 83698eafc2Smikel.Nm 840658ff6aSmikelvariables that may be set, the values to which each may be set, 85698eafc2Smikela brief description of what each variable does, and a reference to 8689e8f956Sgrantrelevant manual pages. 8789e8f956SgrantThird party packages may test for additional variables. 88c3b0e18dScjs.Pp 899b40da66SlukemBy default, 909b40da66Slukem.Nm 919b40da66Slukemreads 929b40da66Slukem.Pa /etc/defaults/rc.conf 939b40da66Slukem(if it is readable) 949b40da66Slukemto obtain default values for various variables, and the end-user 959b40da66Slukemmay override these by appending appropriate entries to the end of 96990562bfSwiz.Nm . 979b40da66Slukem.Pp 989b40da66Slukem.Xr rc.d 8 999b40da66Slukemscripts that use 1009b40da66Slukem.Ic load_rc_config 1019b40da66Slukemfrom 1029b40da66Slukem.Xr rc.subr 8 1039b40da66Slukemalso support sourcing an optional end-user provided per-script override 1049b40da66Slukemfile 1059b40da66Slukem.Pa /etc/rc.conf.d/ Ns Ar service , 1069b40da66Slukem(where 1079b40da66Slukem.Ar service 1089b40da66Slukemis the contents of the 1099b40da66Slukem.Sy name 1109b40da66Slukemvariable in the 1119b40da66Slukem.Xr rc.d 8 1129b40da66Slukemscript). 1139b40da66SlukemThis may contain variable overrides, including allowing the end-user 1149b40da66Slukemto override various 1159b40da66Slukem.Ic run_rc_command 1169b40da66Slukem.Xr rc.d 8 1179b40da66Slukemcontrol variables, and thus changing the operation of the script 1189b40da66Slukemwithout requiring editing of the script. 119482c8f25Sapb.Ss Variable naming conventions and data types 120482c8f25SapbMost variables are one of two types: enabling variables or flags 121482c8f25Sapbvariables. 122482c8f25SapbEnabling variables, such as 123482c8f25Sapb.Sy inetd , 124482c8f25Sapbare generally named after the program or the system they enable, 125482c8f25Sapband have boolean values (specified using 126a66d4123Suwe.Ql YES , 127a66d4123Suwe.Ql TRUE , 128a66d4123Suwe.Ql ON 129482c8f25Sapbor 130a66d4123Suwe.Ql 1 131482c8f25Sapbfor true, and 132a66d4123Suwe.Ql NO , 133a66d4123Suwe.Ql FALSE , 134a66d4123Suwe.Ql OFF 135482c8f25Sapbor 136a66d4123Suwe.Ql 0 137482c8f25Sapbfor false, with the values being case insensitive). 138482c8f25SapbFlags variables, such as 139482c8f25Sapb.Sy inetd_flags 140a66d4123Suwehave the same name with 141a66d4123Suwe.Dq _flags 142a66d4123Suweappended, and determine what 143482c8f25Sapbarguments are passed to the program if it is enabled. 144482c8f25Sapb.Pp 145482c8f25SapbIf a variable that 146482c8f25Sapb.Xr rc 8 147482c8f25Sapbexpects to be set is not set, or the value is not one of the allowed 148482c8f25Sapbvalues, a warning will be printed. 149e84dcc69Swiz.Ss Overall control 1505ab1f61bSlukem.Bl -tag -width net_interfaces 1515a07b7faSjmmv.It Sy do_rcshutdown 152482c8f25SapbBoolean value. 153482c8f25SapbIf false, 1545a07b7faSjmmv.Xr shutdown 8 1555a07b7faSjmmvwill not run 1565a07b7faSjmmv.Pa /etc/rc.shutdown . 1575a07b7faSjmmv.It Sy rcshutdown_rcorder_flags 1585a07b7faSjmmvA string. 1595a07b7faSjmmvExtra arguments to the 1605a07b7faSjmmv.Xr rcorder 8 1615a07b7faSjmmvrun by 1625a07b7faSjmmv.Pa /etc/rc.shutdown . 1635a07b7faSjmmv.It Sy rcshutdown_timeout 1645a07b7faSjmmvA number. 1655a07b7faSjmmvIf non-blank, use this as the number of seconds to run a watchdog timer for 1665a07b7faSjmmvwhich will terminate 1675a07b7faSjmmv.Pa /etc/rc.shutdown 1685a07b7faSjmmvif the timer expires before the shutdown script completes. 1695ab1f61bSlukem.It Sy rc_configured 170482c8f25SapbBoolean value. 171482c8f25SapbIf false then the system will drop into single-user mode during boot. 172deb1dc05Slukem.It Sy rc_fast_and_loose 17310b74744SlukemIf set to a non-empty string, 174deb1dc05Slukemeach script in 175deb1dc05Slukem.Pa /etc/rc.d 176deb1dc05Slukemwill be executed in the current shell rather than a sub shell. 177deb1dc05SlukemThis may be faster on slow machines that have an expensive 178deb1dc05Slukem.Xr fork 2 179deb1dc05Slukemoperation. 180deb1dc05Slukem.Bl -hang 181deb1dc05Slukem.It Em Note : 182deb1dc05SlukemUse this at your own risk! 183deb1dc05SlukemA rogue command or script may inadvertently prevent boot to multiuser. 184deb1dc05Slukem.El 18596e2ff62Slukem.It Sy rc_rcorder_flags 18696e2ff62SlukemA string. 18796e2ff62SlukemExtra arguments to the 18896e2ff62Slukem.Xr rcorder 8 18996e2ff62Slukemrun by 19096e2ff62Slukem.Pa /etc/rc . 191760b4799Sjoerg.It Sy rc_directories 192760b4799SjoergA string. 193760b4799SjoergSpace separated list of directories searched for rc scripts. 194760b4799SjoergThe default is 195760b4799Sjoerg.Pa /etc/rc.d . 196760b4799SjoergAll directories in 197760b4799Sjoerg.Ev rc_directories 198760b4799Sjoergmust be located in the root file system, otherwise they will be silently 199760b4799Sjoergskipped. 20089fd5357Sapb.It Sy rc_silent 20189fd5357SapbBoolean value. 20231bddcb4SwizIf true then the usual output is suppressed, and 20389fd5357Sapb.Xr rc 8 20489fd5357Sapbinvokes the command specified in the 20589fd5357Sapb.Va rc_silent_cmd 20689fd5357Sapbvariable once for each line of suppressed output. 20789fd5357SapbThe default value of 20889fd5357Sapb.Va rc_silent 20989fd5357Sapbis set from the 21089fd5357Sapb.Dv AB_SILENT 21189fd5357Sapbflag in the kernel's 21289fd5357Sapb.Va boothowto 21389fd5357Sapbvariable (see 21489fd5357Sapb.Xr boot 8 , 21589fd5357Sapb.Xr reboot 2 ) . 21689fd5357Sapb.It Sy rc_silent_cmd 21789fd5357SapbA command to be executed once per line of suppressed output, when 21889fd5357Sapb.Va rc_silent 21989fd5357Sapbis true. 22089fd5357SapbThe default value of 22189fd5357Sapb.Va rc_silent_cmd 22289fd5357Sapbis 223a66d4123Suwe.Ql twiddle , 22489fd5357Sapbwhich will display a spinning symbol instead of each line of output. 22589fd5357SapbAnother useful value is 226a66d4123Suwe.Ql \&: , 22789fd5357Sapbwhich will display nothing at all. 2285ab1f61bSlukem.El 229e84dcc69Swiz.Ss Basic network configuration 2300658ff6aSmikel.Bl -tag -width net_interfaces 231deb1dc05Slukem.It Sy defaultroute 232deb1dc05SlukemA string. 2335f73509dSghenDefault IPv4 network route. 234deb1dc05SlukemIf empty or not set, then the contents of 235deb1dc05Slukem.Pa /etc/mygate 236deb1dc05Slukem(if it exists) are used. 2375f73509dSghen.It Sy defaultroute6 2385f73509dSghenA string. 2395f73509dSghenDefault IPv6 network route. 2405f73509dSghenIf empty or not set, then the contents of 2415f73509dSghen.Pa /etc/mygate6 2425f73509dSghen(if it exists) are used. 2436de0bcebSlukem.It Sy domainname 244deb1dc05SlukemA string. 245ad36999fSwizNIS (YP) domain of host. 2466de0bcebSlukemIf empty or not set, then the contents of 2476de0bcebSlukem.Pa /etc/defaultdomain 2486de0bcebSlukem(if it exists) are used. 24966efc865Smartin.It Sy force_down_interfaces 25066efc865SmartinA space separated list of interface names. 251187098edSwizThese interfaces will be configured down when going from multiuser to single-user 25266efc865Smartinmode or on system shutdown. 253eb279c7fSroy.It Sy dns_domain 254eb279c7fSroyA string. 255eb279c7fSroySets domain in 256eb279c7fSroy.Pa /etc/resolv.conf . 257eb279c7fSroy.It Sy dns_search 258eb279c7fSroyA string. 259eb279c7fSroySets search in 260eb279c7fSroy.Pa /etc/resolv.conf . 261eb279c7fSroy.It Sy dns_nameservers 2629ba4df15SmsaitohA string of space separated domain name servers. 263eb279c7fSroySets nameserver for each value in 264eb279c7fSroy.Pa /etc/resolv.conf . 265eb279c7fSroy.It Sy dns_sortlist 266eb279c7fSroyA string. 267eb279c7fSroySets sortlist in 268eb279c7fSroy.Pa /etc/resolv.conf . 269eb279c7fSroy.It Sy dns_options 270eb279c7fSroyA string. 271eb279c7fSroySets options in 272eb279c7fSroy.Pa /etc/resolv.conf . 273eb279c7fSroy.It Sy dns_metric 274eb279c7fSroyAn unsigned integer. 275eb279c7fSroySets the priority of the above DNS to other sources, lowest wins. 276eb279c7fSroyDefaults to 0. 27766efc865Smartin.Pp 2786049b090SmaxvThis is important for some stateful interfaces, for example PPPoE interfaces 2796049b090Smaxvwhich have no direct means of noticing 28066efc865Smartin.Dq disconnect 28166efc865Smartinevents. 28266efc865Smartin.Pp 28366efc865SmartinAll active 28466efc865Smartin.Xr pppoe 4 28566efc865Smartininterfaces will be automatically added to this list. 2865a07b7faSjmmv.It Sy hostname 2875a07b7faSjmmvA string. 2885a07b7faSjmmvName of host. 2895a07b7faSjmmvIf empty or not set, then the contents of 2905a07b7faSjmmv.Pa /etc/myname 2915a07b7faSjmmv(if it exists) are used. 2926de0bcebSlukem.El 293e84dcc69Swiz.Ss Boottime file-system and swap configuration 2945ab1f61bSlukem.Bl -tag -width net_interfaces 2955ee7ac88Slukem.It Sy critical_filesystems_local 296deb1dc05SlukemA string. 2975ab1f61bSlukemFile systems mounted very early in the system boot before networking 2985ab1f61bSlukemservices are available. 2995ab1f61bSlukemUsually 300c8bd86bcSmrg.Pa /var 3015ab1f61bSlukemis part of this, because it is needed by services such as 3029faa971cSmaya.Xr dhcpcd 8 3035ab1f61bSlukemwhich may be required to get the network operational. 30470472a48SapbThe default is 305a66d4123Suwe.Ql "OPTIONAL:" Ns Pa /var , 30670472a48Sapbwhere the 307a66d4123Suwe.Ql "OPTIONAL:" 30870472a48Sapbprefix means that it's not an error if the file system is not 30970472a48Sapbpresent in 31070472a48Sapb.Xr fstab 5 . 3115ee7ac88Slukem.It Sy critical_filesystems_remote 312deb1dc05SlukemA string. 3135ab1f61bSlukemFile systems such as 3145ab1f61bSlukem.Pa /usr 3155ab1f61bSlukemthat may require network services to be available to mount, 3165ab1f61bSlukemthat must be available early in the system boot for general services to use. 31770472a48SapbThe default is 318a66d4123Suwe.Ql "OPTIONAL:" Ns Pa /usr , 31970472a48Sapbwhere the 320a66d4123Suwe.Ql "OPTIONAL:" 3215af1e193Sjruohoprefix means that it is not an error if the file system is not 32270472a48Sapbpresent in 32370472a48Sapb.Xr fstab 5 . 324c7c3f28dSalnsn.It Sy critical_filesystems_zfs 325c7c3f28dSalnsnA string. 326c7c3f28dSalnsnMount non-legacy ZFS file systems right after mounting local 327c7c3f28dSalnsnfile systems listed in 328c7c3f28dSalnsn.Sy critical_filesystems_local 329c7c3f28dSalnsnvariable. 330c7c3f28dSalnsnAn entry can be prefixed with 331c7c3f28dSalnsn.Ql "OPTIONAL:" 332c7c3f28dSalnsnwhich means that it is not an error if the file system is not present 333c7c3f28dSalnsnamong available ZFS datasets. 334c7c3f28dSalnsnThe default is ''. 335a215a8d5Smartti.It Sy fsck_flags 336a215a8d5SmarttiA string. 337a215a8d5SmarttiA file system is checked with 338a215a8d5Smartti.Xr fsck 8 339a215a8d5Smarttiduring boot before mounting it. 340a215a8d5SmarttiThis option may be used to override the default command-line options 341a215a8d5Smarttipassed to the 342a215a8d5Smartti.Xr fsck 8 343a215a8d5Smarttiprogram. 344a215a8d5Smartti.Pp 345a215a8d5SmarttiWhen set to 346a215a8d5Smartti.Fl y , 347a215a8d5Smartti.Xr fsck 8 348a215a8d5Smarttiassumes yes as the answer to all operator questions during file system checks. 349a215a8d5SmarttiThis might be important with hosts where the administrator does not have 350a215a8d5Smarttiaccess to the console and an unsuccessful shutdown must not make the host 351a215a8d5Smarttiunbootable even if the file system checks would fail in preen mode. 352e86652a3Sjruoho.It Sy modules 353e86652a3SjruohoBoolean value. 354e86652a3SjruohoIf true, loads the modules specified in 355e86652a3Sjruoho.Xr modules.conf 5 . 356c8bd86bcSmrg.It Sy no_swap 357482c8f25SapbBoolean value. 358482c8f25SapbShould be true if you have deliberately configured your system with no swap. 359482c8f25SapbIf false and no swap devices are configured, the system will warn you. 36094dff347Schopps.It Sy resize_root 36194dff347SchoppsBoolean value. 36251864d68SwizSet to true to have the system resize the root file system to fill its 36394dff347Schoppspartition. 36494dff347SchoppsWill only attempt to resize the root file system if it is of type ffs and does 36594dff347Schoppsnot have logging enabled. 36694dff347SchoppsDefaults to false. 3671193c443Slukem.It Sy swapoff 368482c8f25SapbBoolean value. 3691193c443SlukemRemove block-type swap devices at shutdown time. 3701193c443SlukemUseful if swapping onto RAIDframe devices. 371a52a4fdcSmartin.It Sy swapoff_umount 372a52a4fdcSmartin.Dq "auto" 373a52a4fdcSmartinor 374a52a4fdcSmartin.Dq "manual" . 375a52a4fdcSmartinBefore removing block-type swap devices, it is wise to unmount tmpfs filesystems to avoid having to swap their contents back into RAM. 376a52a4fdcSmartinBy default 377a52a4fdcSmartin.Dq ( "auto" ) 378a52a4fdcSmartinall tmpfs filesystems that contain no device nodes are unmounted. 379a52a4fdcSmartinSet to 380a52a4fdcSmartin.Dq "manual" 381a52a4fdcSmartinto explicitly specify which filesystems to unmount before removing swap. 382a52a4fdcSmartin.It Sy swapoff_umount_fs 383a52a4fdcSmartinA space-separated list of absolute paths to tmpfs mount points. 384a52a4fdcSmartinIf 385a52a4fdcSmartin.Sy swapoff_umount 386a52a4fdcSmartinis set to 387a52a4fdcSmartin.Dq "manual" , 388a52a4fdcSmartinthese tmpfs filesystems will be forcibly unmounted before removing block-type 389a52a4fdcSmartinswap devices. 39056d7a6f0Smartin.It Sy var_shm_symlink 39156d7a6f0SmartinA path. 39230e86e49SwizIf set, names a path that 39330e86e49Swiz.Pa /var/shm 39430e86e49Swizwill be symlinked to. 39556d7a6f0Smartin.Pp 39656d7a6f0SmartinThe path needs to live on a tmpfs file system. 39730e86e49SwizA typical value (assuming 39830e86e49Swiz.Pa /tmp 39930e86e49Swizis mounted on tmpfs) would be 40056d7a6f0Smartin.Pa /tmp/.shm . 401c8bd86bcSmrg.El 402b49de35fSjdf.Ss Block device subsystems 4030658ff6aSmikel.Bl -tag -width net_interfaces 404b1f54665Sjruoho.It Sy ccd 405b1f54665SjruohoBoolean value. 406b1f54665SjruohoConfigures concatenated disk devices according to 407b1f54665Sjruoho.Xr ccd.conf 5 . 408b1f54665Sjruoho.It Sy cgd 409b1f54665SjruohoBoolean value. 410b1f54665SjruohoConfigures cryptographic disk devices. 411b1f54665SjruohoRequires 412b1f54665Sjruoho.Pa /etc/cgd/cgd.conf . 413b1f54665SjruohoSee 414b1f54665Sjruoho.Xr cgdconfig 8 415b1f54665Sjruohofor additional details. 416b49de35fSjdf.It Sy lvm 417b49de35fSjdfBoolean value. 418b49de35fSjdfConfigures the logical volume manager. 419b49de35fSjdfSee 420b49de35fSjdf.Xr lvm 8 421b49de35fSjdffor additional details. 422b49de35fSjdf.It Sy raidframe 423b49de35fSjdfBoolean value. 424b49de35fSjdfConfigures 425b49de35fSjdf.Xr raid 4 , 426b49de35fSjdfRAIDframe disk devices. 427b49de35fSjdfSee 428b49de35fSjdf.Xr raidctl 8 429b49de35fSjdffor additional details. 430fdf2a158Salnsn.It Sy zfs 431fdf2a158SalnsnBoolean value. 432fdf2a158SalnsnConfigures ZFS storage pools and ZFS file systems. 433b49de35fSjdf.El 434b49de35fSjdf.Ss One-time actions to perform or programs to run on boot-up 435b49de35fSjdf.Bl -tag -width net_interfaces 436b49de35fSjdf.It Sy accounting 437b49de35fSjdfBoolean value. 438b49de35fSjdfEnables process accounting with 439b49de35fSjdf.Xr accton 8 . 440b49de35fSjdfRequires 441b49de35fSjdf.Pa /var/account/acct 442b49de35fSjdfto exist. 443d8ff8a05Senami.It Sy clear_tmp 444482c8f25SapbBoolean value. 445b1f54665SjruohoClear 446b1f54665Sjruoho.Pa /tmp 447b1f54665Sjruohoafter reboot. 448ba16b62dSlukem.It Sy dmesg 449482c8f25SapbBoolean value. 450ba16b62dSlukemCreate 451ba16b62dSlukem.Pa /var/run/dmesg.boot 452ba16b62dSlukemfrom the output of 453ba16b62dSlukem.Xr dmesg 8 . 454ba16b62dSlukemPasses 455ba16b62dSlukem.Sy dmesg_flags . 456cba96d16Sriastradh.It Sy entropy 457e857694cSriastradhA string, either 458e857694cSriastradh.Sq Li check , 459e857694cSriastradh.Sq Li wait , 460cba96d16Sriastradhor 461e857694cSriastradh.Sq Li "" 462e857694cSriastradh(empty). 463e857694cSriastradhIf set and nonempty, then during boot-up, after 464cba96d16Sriastradh.Sy random_seed 465cba96d16Sriastradhand 466cba96d16Sriastradh.Sy rndctl , 467cba96d16Sriastradhcheck for or wait until enough entropy before any networking is 468cba96d16Sriastradhenabled. 469cba96d16Sriastradh.Pp 470cba96d16SriastradhIf not enough entropy is available, then: 471cba96d16Sriastradh.Bl -bullet -compact 472cba96d16Sriastradh.It 473cba96d16SriastradhWith 474cba96d16Sriastradh.Sq Li entropy=check , 475cba96d16Sriastradhstop multiuser boot and enter single-user mode instead. 476cba96d16Sriastradh.It 477cba96d16SriastradhWith 478cba96d16Sriastradh.Sq Li entropy=wait , 479cba96d16Sriastradhwait until enough entropy is available. 480cba96d16Sriastradh.El 481cba96d16Sriastradh.Pp 482cba96d16SriastradhNote that 483cba96d16Sriastradh.Sq Li entropy=wait 484cba96d16Sriastradhmay cause the system to hang indefinitely at boot if it has neither a 485cba96d16Sriastradhrandom seed nor any hardware random number generators \(em use with 486cba96d16Sriastradhcare. 48783f1fd31Sriastradh.Pp 48815b5cd8aSriastradhIf empty or not set, the system may come to multiuser without entropy, 48915b5cd8aSriastradhwhich is unsafe to use on the internet; it is the operator's 49015b5cd8aSriastradhresponsibility to heed warnings from the kernel and the daily 49183f1fd31Sriastradh.Xr security.conf 5 49283f1fd31Sriastradhreport to remedy the problem \(em see 49383f1fd31Sriastradh.Xr entropy 7 . 494b1f54665Sjruoho.It Sy envsys 495b1f54665SjruohoBoolean value. 496b1f54665SjruohoSets preferences for the environmental systems framework, 497b1f54665Sjruoho.Xr envsys 4 . 498b1f54665SjruohoRequires 499b1f54665Sjruoho.Pa /etc/envsys.conf , 500b1f54665Sjruohowhich is described in 501b1f54665Sjruoho.Xr envsys.conf 5 . 50270d654f7Smbalmer.It Sy gpio 503482c8f25SapbBoolean value. 50470d654f7SmbalmerConfigure 50570d654f7Smbalmer.Xr gpio 4 50670d654f7Smbalmerdevices. 50770d654f7SmbalmerSee 50870d654f7Smbalmer.Xr gpio.conf 5 . 509b1f54665Sjruoho.It Sy ldconfig 510b1f54665SjruohoBoolean value. 511b1f54665SjruohoConfigures 512b1f54665Sjruoho.Xr a.out 5 513b1f54665Sjruohoruntime link editor directory cache. 5146f759f07Swiz.It Sy mixerctl 515482c8f25SapbBoolean value. 5166f759f07SwizRead 5176f759f07Swiz.Xr mixerctl.conf 5 5186f759f07Swizfor how to set mixer values. 5196f759f07SwizList in 5206f759f07Swiz.Sy mixerctl_mixers 5216f759f07Swizthe devices whose settings are to be saved at shutdown and 5226f759f07Swizrestored at start-up. 5235a07b7faSjmmv.It Sy newsyslog 524482c8f25SapbBoolean value. 5255a07b7faSjmmvRun 5265a07b7faSjmmv.Nm newsyslog 5275a07b7faSjmmvto trim log files before syslogd starts. 5285a07b7faSjmmvIntended for laptop users. 5295a07b7faSjmmvPasses 5305a07b7faSjmmv.Sy newsyslog_flags . 5315e2e282fSelad.It Sy per_user_tmp 532482c8f25SapbBoolean value. 5335e2e282fSeladEnables a per-user 5345e2e282fSelad.Pa /tmp 5355e2e282fSeladdirectory. 5365e2e282fSelad.Sy per_user_tmp_dir 5375e2e282fSeladcan be used to override the default location of the 5385e2e282fSelad.Dq real 5395e2e282fSeladtemporary directories, 540a66d4123Suwe.Pa /private/tmp . 5415af1e193SjruohoSee 542d466b2f9Sjruoho.Xr security 7 5435af1e193Sjruohofor additional details. 544b1f54665Sjruoho.It Sy quota 545b1f54665SjruohoBoolean value. 546b1f54665SjruohoChecks and enables quotas by running 5478489e58aSwiz.Xr quotacheck 8 548b1f54665Sjruohoand 549b1f54665Sjruoho.Xr quotaon 8 . 55007c206b6Sapb.It Sy random_seed 55107c206b6SapbBoolean value. 55207c206b6SapbDuring boot-up, runs the 55307c206b6Sapb.Xr rndctl 8 55407c206b6Sapbutility with the 55507c206b6Sapb.Fl L 55607c206b6Sapbflag to seed the random number subsystem from an entropy file. 55707c206b6SapbDuring shutdown, runs the 55807c206b6Sapb.Xr rndctl 8 55907c206b6Sapbutility with the 56007c206b6Sapb.Fl S 56107c206b6Sapbflag to save some random information to the entropy file. 56207c206b6SapbThe entropy file name is specified by the 56307c206b6Sapb.Sy random_file 56407c206b6Sapbvariable, and defaults to 56507c206b6Sapb.Pa /var/db/entropy-file . 56607c206b6SapbThe entropy file must be on a local file system that is writable early during 56707c206b6Sapbboot-up (just after the file systems specified in 56807c206b6Sapb.Sy critical_filesystems_local 56907c206b6Sapbhave been mounted), and correspondingly late during shutdown. 570a0398a9dSapb.It Sy rndctl 571482c8f25SapbBoolean value. 572a0398a9dSapbRuns the 573a0398a9dSapb.Xr rndctl 8 574a0398a9dSapbutility one or more times according to the specification in 575a0398a9dSapb.Sy rndctl_flags . 576a0398a9dSapb.Pp 577a0398a9dSapbIf 578a0398a9dSapb.Sy rndctl_flags 579a0398a9dSapbdoes not contain a semicolon 580a0398a9dSapb.Pq Ql \&; 581a0398a9dSapbthen it is expected to contain zero or more flags, 582a0398a9dSapbfollowed by one or more device or type names. 583a0398a9dSapbThe 584a0398a9dSapb.Xr rndctl 8 585a0398a9dSapbcommand will be executed once for each device or type name. 586a0398a9dSapbIf the specified flags do not include any of 587a0398a9dSapb.Fl c , C , e , 588a0398a9dSapbor 589a0398a9dSapb.Fl E , 590a0398a9dSapbthen the flags 591a0398a9dSapb.Fl c 592a0398a9dSapband 593a0398a9dSapb.Fl e 594a0398a9dSapbare added, to specify that entropy from the relevant device or type 595a0398a9dSapbshould be both collected and estimated. 596a0398a9dSapbIf the specified flags do not include either of 597a0398a9dSapb.Fl d 598a0398a9dSapbor 599a0398a9dSapb.Fl t , 600a0398a9dSapbthen the flag 601a0398a9dSapb.Fl d 602a0398a9dSapbis added, to specify that the non-flag arguments are device names, 603a0398a9dSapbnot type names. 604a0398a9dSapb.Pp 605a0398a9dSapb.Sy rndctl_flags 606a0398a9dSapbmay contain multiple semicolon-separated segments, in which each 607a0398a9dSapbsegment contains flags and device or type names as described above. 608a0398a9dSapbThis allows different flags to be associated with different 609a0398a9dSapbdevice or type names. 610a0398a9dSapbFor example, given 611a0398a9dSapb.Li rndctl_flags="wd0 wd1; -t tty; -c -t net" , 612a0398a9dSapbthe following commands will be executed: 613a0398a9dSapb.Li "rndctl -c -e -d wd0" ; 614a0398a9dSapb.Li "rndctl -c -e -d wd1" ; 615a0398a9dSapb.Li "rndctl -c -e -t tty" ; 616a0398a9dSapb.Li "rndctl -c -t net" . 617b1f54665Sjruoho.It Sy rtclocaltime 618b1f54665SjruohoBoolean value. 619b1f54665SjruohoSets the real time clock to local time by adjusting the 620b1f54665Sjruoho.Xr sysctl 7 621b1f54665Sjruohovalue of 622b1f54665Sjruoho.Pa kern.rtc_offset . 623b1f54665SjruohoThe offset from UTC is calculated automatically according 624b1f54665Sjruohoto the time zone information in the file 625b1f54665Sjruoho.Pa /etc/localtime . 6265a07b7faSjmmv.It Sy savecore 627482c8f25SapbBoolean value. 6285a07b7faSjmmvRuns the 6295a07b7faSjmmv.Xr savecore 8 6305a07b7faSjmmvutility. 6315a07b7faSjmmvPasses 6325a07b7faSjmmv.Sy savecore_flags . 6335f89bdd9SatatatThe directory where crash dumps are stored is specified by 6345f89bdd9Satatat.Sy savecore_dir . 6355f89bdd9SatatatThe default setting is 636a66d4123Suwe.Pa /var/crash . 637b1f54665Sjruoho.It Sy sysdb 638b1f54665SjruohoBoolean value. 639b1f54665SjruohoBuilds various system databases, including 6401907ec3aSjoerg.Pa /var/run/dev.cdb , 641b1f54665Sjruoho.Pa /etc/spwd.db , 642b1f54665Sjruoho.Pa /var/db/netgroup.db , 6431907ec3aSjoerg.Pa /var/db/services.cdb , 644b1f54665Sjruohoand entries for 645b1f54665Sjruoho.Xr utmp 5 . 6465a07b7faSjmmv.It Sy tpctl 647482c8f25SapbBoolean value. 6485a07b7faSjmmvRun 6495a07b7faSjmmv.Xr tpctl 8 6505a07b7faSjmmvto calibrate touch panel device. 6515a07b7faSjmmvPasses 6525a07b7faSjmmv.Sy tpctl_flags . 6535a07b7faSjmmv.It Sy update_motd 654482c8f25SapbBoolean value. 6555a07b7faSjmmvUpdates the 6565a07b7faSjmmv.Nx 6575a07b7faSjmmvversion string in the 6585a07b7faSjmmv.Pa /etc/motd 6595a07b7faSjmmvfile to reflect the version of the running kernel. 6605a07b7faSjmmvSee 6615a07b7faSjmmv.Xr motd 5 . 66262e78738Skim.It Sy update_motd_release 66362e78738SkimBoolean value. 66462e78738SkimIf enabled in addition to 66562e78738Skim.Sy update_motd , 66662e78738Skimupdates a second 66762e78738Skim.Nx 66862e78738Skimversion string in the 66962e78738Skim.Pa /etc/motd 67062e78738Skimfile to reflect the version, architecture, and Build ID of 671d7913f15Swizthe installed userland. 672d7913f15SwizAn optional prefix can be provided for this version string in 67362e78738Skim.Sy motd_release_tag . 674e38b3d15Suebayasi.It Sy virecover 675482c8f25SapbBoolean value. 676a95a90d6SuebayasiSend notification mail to users if any recoverable files exist in 677e38b3d15Suebayasi.Pa /var/tmp/vi.recover . 6780589c4dcSreedRead 6790589c4dcSreed.Xr virecover 8 6800589c4dcSreedfor more information. 681b1f54665Sjruoho.It Sy wdogctl 682b1f54665SjruohoBoolean value. 683b1f54665SjruohoConfigures watchdog timers. 684b1f54665SjruohoPasses 685b1f54665Sjruoho.Sy wdogctl_flags . 686b1f54665SjruohoRefer to 687b1f54665Sjruoho.Xr wdogctl 8 688b1f54665Sjruohofor information on how to configure a timer. 689698eafc2Smikel.El 690b49de35fSjdf.Ss System security settings 6915ab1f61bSlukem.Bl -tag -width net_interfaces 692eddf0f4eSmrg.It Sy securelevel 693d8ff8a05SenamiA number. 694d8ff8a05SenamiThe system securelevel is set to the specified value early 695eddf0f4eSmrgin the boot process, before any external logins, or other programs 696d8ff8a05Senamithat run users job, are started. 6976dd766a2SmjlIf set to nothing, the default action is taken, as described in 698ce38195eSreed.Xr init 8 699ce38195eSreedand 700ce38195eSreed.Xr secmodel_securelevel 9 , 7016dd766a2Smjlwhich contains definitive information about the system securelevel. 702c6cc7065SmrgNote that setting 703c6cc7065Smrg.Sy securelevel 704c6cc7065Smrgto 0 in 705c6cc7065Smrg.Nm 706c6cc7065Smrgwill actually result in the system booting with securelevel set to 1, as 707c6cc7065Smrg.Xr init 8 708c6cc7065Smrgwill raise the level when 7099b40da66Slukem.Xr rc 8 7109b40da66Slukemcompletes. 711be00ef5eSelad.It Sy permit_nonalpha 712b49de35fSjdfBoolean value. 713be00ef5eSeladAllow passwords to include non-alpha characters, usually to allow 714de76f19aSwizNIS/YP netgroups. 715b49de35fSjdf.It Sy veriexec 716b49de35fSjdfBoolean value. 717b49de35fSjdfLoad Veriexec fingerprints during startup. 718b49de35fSjdfRead 719b49de35fSjdf.Xr veriexecctl 8 720b49de35fSjdffor more information. 721017aa4d6Selad.It Sy veriexec_strict 722017aa4d6SeladA number. 723017aa4d6SeladControls the strict level of Veriexec. 724017aa4d6SeladLevel 0 is learning mode, used when building the signatures file. 725017aa4d6SeladIt will only output messages but will not enforce anything. 726017aa4d6SeladLevel 1 will only prevent access to files with a fingerprint 7272f8629b8Swizmismatch. 7282f8629b8SwizLevel 2 will also deny writing to and removing of 729017aa4d6Seladmonitored files, as well as enforce access type (as specified in 7302f8629b8Swizthe signatures file). 7312f8629b8SwizLevel 3 will take a step further and prevent 732017aa4d6Seladaccess to files that are not monitored. 733017aa4d6Selad.It Sy veriexec_verbose 734017aa4d6SeladA number. 735017aa4d6SeladControls the verbosity of Veriexec. 736017aa4d6SeladRecommended operation is at level 0, verbose output (mostly used when 737017aa4d6Seladbuilding the signatures file) is at level 1. 738017aa4d6SeladLevel 2 is for debugging only and should not be used. 7396700cfccSelad.It Sy veriexec_flags 7406700cfccSeladA string. 7416700cfccSeladFlags to pass to the 7426700cfccSelad.Nm veriexecctl 7436700cfccSeladcommand. 744907a706cSmaxv.It Sy smtoff 745907a706cSmaxvBoolean value. 746907a706cSmaxvDisables SMT (Simultaneous Multi-Threading). 747eddf0f4eSmrg.El 748e84dcc69Swiz.Ss Networking startup 7490658ff6aSmikel.Bl -tag -width net_interfaces 7505a07b7faSjmmv.It Sy altqd 751482c8f25SapbBoolean value. 7525a07b7faSjmmvALTQ configuration/monitoring daemon. 753d7bcd10aSmarttiPasses 7545a07b7faSjmmv.Sy altqd_flags . 755c3b0e18dScjs.It Sy auto_ifconfig 756482c8f25SapbBoolean value. 757fa72f5deSfairSets the 758c3b0e18dScjs.Sy net_interfaces 759c3b0e18dScjsvariable (see below) to the output of 7608075b68cScjs.Xr ifconfig 8 7618075b68cScjswith the 762a66d4123Suwe.Fl l 763c3b0e18dScjsflag and suppresses warnings about interfaces in this list that 764c3b0e18dScjsdo not have an ifconfig file or variable. 765f1c3cdfdSjruoho.It Sy blocklistd 766c4e429fcSmayaBoolean value. 767c4e429fcSmayaRuns 768f1c3cdfdSjruoho.Xr blocklistd 8 769c4e429fcSmayato dynamically block hosts on a DoS according to configuration set in 770f1c3cdfdSjruoho.Xr blocklistd.conf 5 771f1c3cdfdSjruohoPasses 772f1c3cdfdSjruoho.Sy blocklistd_flags . 773636fc830Sroy.It Sy dhcpcd 774636fc830SroyBoolean value. 775636fc830SroySet true to configure some or all network interfaces using dhcpcd. 776636fc830SroyIf you set 777636fc830Sroy.Sy dhcpcd 778636fc830Sroytrue, then 779636fc830Sroy.Pa /var 780636fc830Sroymust be in 781636fc830Sroy.Sy critical_filesystems_local , 78294f952dfSapbor 783636fc830Sroy.Pa /var 784636fc830Sroymust be on the root file system. 785636fc830SroyIf you need to restrict dhcpcd to one or a number of interfaces, 786636fc830Sroyor need a separate configuration per interface, 787636fc830Sroythen this should be done in the configuration file - see 788636fc830Sroy.Xr dhcpcd.conf 5 789636fc830Sroyfor details. 790636fc830Sroy.It Sy dhcpcd_flags 791636fc830SroyPasses 792636fc830Sroy.Sy dhcpcd_flags 793636fc830Sroyto dhcpcd. 794636fc830SroySee 795636fc830Sroy.Xr dhcpcd 8 796636fc830Sroyfor complete documentation. 7975a07b7faSjmmv.It Sy flushroutes 798482c8f25SapbBoolean value. 7995a07b7faSjmmvFlushes the route table on networking startup. 8005a07b7faSjmmvUseful when coming up to multiuser mode after going down to 8015a07b7faSjmmvsingle-user mode. 802b1f54665Sjruoho.It Sy ftp_proxy 803b1f54665SjruohoBoolean value. 804b1f54665SjruohoRuns 805b1f54665Sjruoho.Xr ftp-proxy 8 , 806b1f54665Sjruohothe proxy daemon for the Internet File Transfer Protocol. 8076074aec5Srpaulo.It Sy hostapd 808482c8f25SapbBoolean value. 8096074aec5SrpauloRuns 8106074aec5Srpaulo.Xr hostapd 8 , 8116074aec5Srpaulothe authenticator for IEEE 802.11 networks. 8125a07b7faSjmmv.It Sy ifaliases_* 813deb1dc05SlukemA string. 8145a07b7faSjmmvList of 8155a07b7faSjmmv.Sq Em "address netmask" 8165a07b7faSjmmvpairs to configure additional network addresses for the given 8175a07b7faSjmmvconfigured interface 8185a07b7faSjmmv(e.g. 8195a07b7faSjmmv.Sy ifaliases_le0 ) . 820ec406750SmrgIf 8215a07b7faSjmmv.Em netmask 8225a07b7faSjmmvis 823a66d4123Suwe.Ql - , 8245a07b7faSjmmvthen use the default netmask for the interface. 8255a07b7faSjmmv.Pp 8265a07b7faSjmmv.Sy ifaliases_* 827eb3306a8Sdhollandcovers limited cases only and is considered unrecommended. 8285a07b7faSjmmvWe recommend using 829a66d4123Suwe.Sy ifconfig_xxN 83094f952dfSapbvariables or 831a66d4123Suwe.Pa /etc/ifconfig. Ns Ar xxN 83294f952dfSapbfiles with multiple lines instead. 8335a07b7faSjmmv.It Sy ifwatchd 834482c8f25SapbBoolean value. 8355a07b7faSjmmvMonitor dynamic interfaces and perform actions upon address changes. 8365a07b7faSjmmvPasses 8375a07b7faSjmmv.Sy ifwatchd_flags . 8387c64ebc2Schristos.It Sy ip6addrctl 8397c64ebc2SchristosBoolean value. 8407c64ebc2SchristosFine grain control of address and routing priorities. 8417c64ebc2Schristos.It Sy ip6addrctl_policy 8427c64ebc2SchristosA string. 8437c64ebc2SchristosCan be: 844a66d4123Suwe.Bl -tag -width "Ql auto" -compact 845a66d4123Suwe.It Ql auto 8467c64ebc2Schristosautomatically determine from system settings; will read priorities from 84700b9885eSwiz.Pa /etc/ip6addrctl.conf 8487c64ebc2Schristosor if that file does not exist it will default to IPv6 first, then IPv4. 849a66d4123Suwe.It Ql ipv4_prefer 8507c64ebc2Schristostry IPv4 before IPv6. 851a66d4123Suwe.It Ql ipv6_prefer 8527c64ebc2Schristostry IPv6 before IPv4. 8537c64ebc2Schristos.El 8547c64ebc2Schristos.It Sy ip6addrctl_verbose 8557c64ebc2SchristosBoolean value. 8567c64ebc2SchristosIf set, print the resulting prefixes and priorities map. 857e9056d34Sitojun.It Sy ip6mode 858deb1dc05SlukemA string. 85994e64335SitojunAn IPv6 node can be a router 86094e64335Sitojun.Pq nodes that forward packet for others 8613d13a591Slukemor a host 86294e64335Sitojun.Pq nodes that do not forward . 863e9056d34SitojunA host can be autoconfigured 8643d13a591Slukembased on the information advertised by adjacent IPv6 routers. 86594e64335SitojunBy setting 866e9056d34Sitojun.Sy ip6mode 867e9056d34Sitojunto 868a66d4123Suwe.Ql router , 869a66d4123Suwe.Ql host , 870e9056d34Sitojunor 871a66d4123Suwe.Ql autohost , 872e9056d34Sitojunyou can configure your node as a router, 873e9056d34Sitojuna non-autoconfigured host, or an autoconfigured host. 874e9056d34SitojunInvalid values will be ignored, and the node will be configured as 875e9056d34Sitojuna non-autoconfigured host. 8767acb962bSrpaulo.It Sy ip6uniquelocal 877482c8f25SapbBoolean value. 8787acb962bSrpauloIf 8797acb962bSrpaulo.Sy ip6mode 8807acb962bSrpaulois equal to 881a66d4123Suwe.Ql router , 8827acb962bSrpauloand 8837acb962bSrpaulo.Sy ip6uniquelocal 884482c8f25Sapbis false, 8857acb962bSrpauloa reject route will be installed on boot to avoid misconfiguration relating 8867acb962bSrpauloto unique-local addresses. 887482c8f25SapbIf 888482c8f25Sapb.Sy ip6uniquelocal 889482c8f25Sapbis true, the reject route won't be installed. 8905a07b7faSjmmv.It Sy ipfilter 891482c8f25SapbBoolean value. 8925a07b7faSjmmvRuns 8935a07b7faSjmmv.Xr ipf 8 8945a07b7faSjmmvto load in packet filter specifications from 8955a07b7faSjmmv.Pa /etc/ipf.conf 8965a07b7faSjmmvat network boot time, before any interfaces are configured. 8973e6c1c50ShannkenPasses 8983e6c1c50Shannken.Sy ipfilter_flags . 8995a07b7faSjmmvSee 9005a07b7faSjmmv.Xr ipf.conf 5 . 9015a07b7faSjmmv.It Sy ipfs 902482c8f25SapbBoolean value. 9035a07b7faSjmmvRuns 9045a07b7faSjmmv.Xr ipfs 8 9055a07b7faSjmmvto save and restore information for ipnat and ipfilter state tables. 9065a07b7faSjmmvThe information is stored in 9075a07b7faSjmmv.Pa /var/db/ipf/ipstate.ipf 9085a07b7faSjmmvand 9095a07b7faSjmmv.Pa /var/db/ipf/ipnat.ipf . 9105a07b7faSjmmvPasses 9115a07b7faSjmmv.Sy ipfs_flags . 9125a07b7faSjmmv.It Sy ipmon 913482c8f25SapbBoolean value. 9145a07b7faSjmmvRuns 9155a07b7faSjmmv.Xr ipmon 8 9165a07b7faSjmmvto read 9175a07b7faSjmmv.Xr ipf 8 9185a07b7faSjmmvpacket log information and log it to a file or the system log. 9195a07b7faSjmmvPasses 9205a07b7faSjmmv.Sy ipmon_flags . 9215a07b7faSjmmv.It Sy ipmon_flags 9225a07b7faSjmmvA string. 9235a07b7faSjmmvSpecifies arguments to supply to 9245a07b7faSjmmv.Xr ipmon 8 . 9255a07b7faSjmmvDefaults to 926a66d4123Suwe.Ql -ns . 9275a07b7faSjmmvA typical example would be 928a66d4123Suwe.Ql "-nD /var/log/ipflog" 9295a07b7faSjmmvto have 9305a07b7faSjmmv.Xr ipmon 8 9315a07b7faSjmmvlog directly to a file bypassing 9325a07b7faSjmmv.Xr syslogd 8 . 9335a07b7faSjmmvIf the 934a66d4123Suwe.Fl D 9355a07b7faSjmmvargument is used, remember to modify 9365a07b7faSjmmv.Pa /etc/newsyslog.conf 9375a07b7faSjmmvaccordingly; for example: 938a66d4123Suwe.Pp 939a66d4123Suwe.Dl /var/log/ipflog 640 10 100 * Z /var/run/ipmon.pid 9405a07b7faSjmmv.It Sy ipnat 941482c8f25SapbBoolean value. 9425a07b7faSjmmvRuns 9435a07b7faSjmmv.Xr ipnat 8 9445a07b7faSjmmvto load in the IP network address translation (NAT) rules from 9455a07b7faSjmmv.Pa /etc/ipnat.conf 9465a07b7faSjmmvat network boot time, before any interfaces are configured. 9475a07b7faSjmmvSee 9485a07b7faSjmmv.Xr ipnat.conf 5 . 9495a07b7faSjmmv.It Sy ipsec 950482c8f25SapbBoolean value. 9515a07b7faSjmmvRuns 9525a07b7faSjmmv.Xr setkey 8 9535a07b7faSjmmvto load in IPsec manual keys and policies from 9545a07b7faSjmmv.Pa /etc/ipsec.conf 9555a07b7faSjmmvat network boot time, before any interfaces are configured. 956c4e429fcSmaya.It Sy npf 957c4e429fcSmayaBoolean value. 958c4e429fcSmayaLoads 959c4e429fcSmaya.Xr npf.conf 5 960c4e429fcSmayaat network boot time, and starts 961c4e429fcSmaya.Xr npf 7 . 962c4e429fcSmaya.It Sy npfd 963c4e429fcSmayaBoolean value. 964c4e429fcSmayaRuns 965c4e429fcSmaya.Xr npfd 8 , 966c4e429fcSmayathe NPF packet filter logging and state synchronization daemon. 967319465cfSjruohoPasses 968319465cfSjruoho.Sy npfd_flags . 9695a07b7faSjmmv.It Sy net_interfaces 9705a07b7faSjmmvA string. 9715a07b7faSjmmvThe list of network interfaces to be configured at boot time. 9725a07b7faSjmmvFor each interface "xxN", the system first looks for ifconfig 97394f952dfSapbparameters in the variable 97494f952dfSapb.Sy ifconfig_xxN , 97594f952dfSapband then in the file 97694f952dfSapb.Pa /etc/ifconfig.xxN . 9775a07b7faSjmmvIf 9785a07b7faSjmmv.Sy auto_ifconfig 979482c8f25Sapbis false, and neither the variable nor the file is found, 9805a07b7faSjmmva warning is printed. 98194f952dfSapbInformation in either the variable or the file is parsed identically, 98294f952dfSapbexcept that, if an 98394f952dfSapb.Sy ifconfig_xxN 98494f952dfSapbvariable contains a single line with embedded semicolons, 98594f952dfSapbthen the value is split into multiple lines prior to further parsing, 98694f952dfSapbtreating the semicolon as a line separator. 98786b00a2eSjruoho.Pp 988636fc830SroyOne common case it to set the 98994f952dfSapb.Sy ifconfig_xxN 99094f952dfSapbvariable to a set of arguments to be passed to an 99194f952dfSapb.Xr ifconfig 8 99294f952dfSapbcommand after the interface name. 9935a07b7faSjmmvRefer to 9945a07b7faSjmmv.Xr ifconfig.if 5 9955a07b7faSjmmvfor more details on 99694f952dfSapb.Pa /etc/ifconfig.xxN 99794f952dfSapbfiles, and note that the information there also applies to 99894f952dfSapb.Sy ifconfig_xxN 99994f952dfSapbvariables (after the variables are split into lines). 10005a07b7faSjmmv.It Sy ntpdate 1001482c8f25SapbBoolean value. 10025a07b7faSjmmvRuns 10035a07b7faSjmmv.Xr ntpdate 8 10045a07b7faSjmmvto set the system time from one of the hosts in 10055a07b7faSjmmv.Sy ntpdate_hosts . 10065a07b7faSjmmvIf 10075a07b7faSjmmv.Sy ntpdate_hosts 10085a07b7faSjmmvis empty, it will attempt to find a list of hosts in 10095a07b7faSjmmv.Pa /etc/ntp.conf . 10105a07b7faSjmmvPasses 10115a07b7faSjmmv.Sy ntpdate_flags . 1012fff57c55Syamt.It Sy pf 1013482c8f25SapbBoolean value. 1014fff57c55SyamtEnable 1015fff57c55Syamt.Xr pf 4 1016fff57c55Syamtat network boot time: 1017fff57c55SyamtLoad the initial configuration 1018fff57c55Syamt.Xr pf.boot.conf 5 1019fff57c55Syamtbefore the network is up. 1020fff57c55SyamtAfter the network has been configured, then load the final rule set 1021fff57c55Syamt.Xr pf.conf 5 . 1022fff57c55Syamt.It Sy pf_rules 1023fff57c55SyamtA string. 1024fff57c55SyamtThe path of the 1025fff57c55Syamt.Xr pf.conf 5 1026fff57c55Syamtrule set that will be used when loading the final rule set. 1027fff57c55Syamt.It Sy pflogd 1028482c8f25SapbBoolean value. 1029fff57c55SyamtRun 1030fff57c55Syamt.Xr pflogd 8 1031fff57c55Syamtfor dumping packet filter logging information to a file. 1032281a5e1fSprlw1.It Sy ppp 103362db89bdSwizA boolean. 103462db89bdSwizToggles starting 1035281a5e1fSprlw1.Xr pppd 8 103662db89bdSwizon startup. 103762db89bdSwizSee 1038281a5e1fSprlw1.Sy ppp_peers 1039281a5e1fSprlw1below. 10405a07b7faSjmmv.It Sy ppp_peers 10415a07b7faSjmmvA string. 10425a07b7faSjmmvIf 1043281a5e1fSprlw1.Sy ppp 1044281a5e1fSprlw1is true and 10455a07b7faSjmmv.Sy ppp_peers 10465a07b7faSjmmvis not empty, then 10475a07b7faSjmmv.Pa /etc/rc.d/ppp 10485a07b7faSjmmvwill check each word in 10495a07b7faSjmmv.Sy ppp_peers 10505a07b7faSjmmvfor a corresponding ppp configuration file in 10515a07b7faSjmmv.Pa /etc/ppp/peers 10525a07b7faSjmmvand will call 10535a07b7faSjmmv.Xr pppd 8 10545a07b7faSjmmvwith the 1055a66d4123Suwe.Dq Ic call Va peer 10565a07b7faSjmmvoption. 10575a07b7faSjmmv.It Sy racoon 1058482c8f25SapbBoolean value. 10595a07b7faSjmmvRuns 10605a07b7faSjmmv.Xr racoon 8 , 10615a07b7faSjmmvthe IKE (ISAKMP/Oakley) key management daemon. 106208a924d3Srpaulo.It Sy wpa_supplicant 1063482c8f25SapbBoolean value. 106408a924d3SrpauloRun 106508a924d3Srpaulo.Xr wpa_supplicant 8 , 106608a924d3SrpauloWPA/802.11i Supplicant for wireless network devices. 1067db5a8e61SapbIf you set 106830f96bf3Ssnj.Sy wpa_supplicant 1069db5a8e61Sapbtrue, then 1070db5a8e61Sapb.Pa /usr 1071db5a8e61Sapbmust be in 1072db5a8e61Sapb.Sy critical_filesystems_local , 1073db5a8e61Sapbor 1074db5a8e61Sapb.Pa /usr 1075db5a8e61Sapbmust be on the root file system. 10769cc6656fSroydhcpcd ignores this variable, see the 10779cc6656fSroy.Sy dhcpcd 10789cc6656fSroyvariable for details. 10798075b68cScjs.El 1080e84dcc69Swiz.Ss Daemons required by other daemons 10810658ff6aSmikel.Bl -tag -width net_interfaces 1082c3b0e18dScjs.It Sy inetd 1083482c8f25SapbBoolean value. 1084fa72f5deSfairRuns the 1085c3b0e18dScjs.Xr inetd 8 10860658ff6aSmikeldaemon to start network server processes (as listed in 1087cdd442b6Scjs.Pa /etc/inetd.conf ) 1088fa72f5deSfairas necessary. 1089fa72f5deSfairPasses 1090c3b0e18dScjs.Sy inetd_flags . 1091c3b0e18dScjsThe 1092a66d4123Suwe.Fl l 1093c3b0e18dScjsflag turns on libwrap connection logging. 1094d8ff8a05Senami.It Sy rpcbind 1095482c8f25SapbBoolean value. 1096fa72f5deSfairThe 1097d8ff8a05Senami.Xr rpcbind 8 1098698eafc2Smikeldaemon is required for any 1099698eafc2Smikel.Xr rpc 3 1100fa72f5deSfairservices. 1101ad36999fSwizThese include NFS, NIS, 1102c3d06042Sreed.Xr rpc.bootparamd 8 , 1103c3d06042Sreed.Xr rpc.rstatd 8 , 1104c3d06042Sreed.Xr rpc.rusersd 8 , 1105cdd442b6Scjsand 1106c3d06042Sreed.Xr rpc.rwalld 8 . 1107deb1dc05SlukemPasses 1108deb1dc05Slukem.Sy rpcbind_flags . 1109cdd442b6Scjs.El 1110e84dcc69Swiz.Ss Commonly used daemons 11110658ff6aSmikel.Bl -tag -width net_interfaces 11125ab1f61bSlukem.It Sy cron 1113482c8f25SapbBoolean value. 11145ab1f61bSlukemRun 11155ab1f61bSlukem.Xr cron 8 . 1116b1f54665Sjruoho.It Sy ftpd 1117b49de35fSjdfBoolean value. 1118b1f54665SjruohoRuns the 1119b1f54665Sjruoho.Xr ftpd 8 1120b1f54665Sjruohodaemon and passes 1121b1f54665Sjruoho.Sy ftpd_flags . 112243e91ff9Smishka.It Sy httpd 1123482c8f25SapbBoolean value. 11249a202445SwizRuns the 112543e91ff9Smishka.Xr httpd 8 112643e91ff9Smishkadaemon and passes 112743e91ff9Smishka.Sy httpd_flags . 112843e91ff9Smishka.It Sy httpd_wwwdir 112943e91ff9SmishkaA string. 113043e91ff9SmishkaThe 113143e91ff9Smishka.Xr httpd 8 113243e91ff9SmishkaWWW root directory. 113343e91ff9SmishkaUsed only if 113443e91ff9Smishka.Sy httpd 1135482c8f25Sapbis true. 113643e91ff9SmishkaThe default setting is 1137a66d4123Suwe.Pa /var/www . 113843e91ff9Smishka.It Sy httpd_wwwuser 113943e91ff9SmishkaA string. 114043e91ff9SmishkaIf non-blank and 114143e91ff9Smishka.Sy httpd 1142482c8f25Sapbis true, run 114343e91ff9Smishka.Xr httpd 8 11449a202445Swizand cause it to switch to the specified user after initialization. 114543e91ff9SmishkaIt is preferred to 114643e91ff9Smishka.Sy httpd_user 114743e91ff9Smishkabecause 114843e91ff9Smishka.Xr httpd 8 11499a202445Swizis requiring extra privileges to start listening on default port 80. 115043e91ff9SmishkaThe default setting is 1151a66d4123Suwe.Ql _httpd . 11525a07b7faSjmmv.It Sy lpd 1153482c8f25SapbBoolean value. 11545a07b7faSjmmvRuns 11555a07b7faSjmmv.Xr lpd 8 11565a07b7faSjmmvand passes 11575a07b7faSjmmv.Sy lpd_flags . 11585a07b7faSjmmvThe 1159a66d4123Suwe.Fl l 11605a07b7faSjmmvflag will turn on extra logging. 116130f96bf3Ssnj.It Sy mdnsd 116230f96bf3SsnjBoolean value. 116330f96bf3SsnjRuns 116430f96bf3Ssnj.Xr mdnsd 8 . 1165c3b0e18dScjs.It Sy named 1166482c8f25SapbBoolean value. 1167fa72f5deSfairRuns 1168c3b0e18dScjs.Xr named 8 1169c3b0e18dScjsand passes 1170c3b0e18dScjs.Sy named_flags . 1171deb1dc05Slukem.It Sy named_chrootdir 1172deb1dc05SlukemA string. 1173deb1dc05SlukemIf non-blank and 1174deb1dc05Slukem.Sy named 1175482c8f25Sapbis true, run 1176deb1dc05Slukem.Xr named 8 1177deb1dc05Slukemas the unprivileged user and group 1178deb1dc05Slukem.Sq named , 1179deb1dc05Slukem.Xr chroot 2 Ns ed 1180deb1dc05Slukemto 1181deb1dc05Slukem.Sy named_chrootdir . 1182a66d4123Suwe.Li \&${named_chrootdir} Ns Pa /var/run/log 1183deb1dc05Slukemwill be added to the list of log sockets that 1184deb1dc05Slukem.Xr syslogd 8 1185deb1dc05Slukemlistens to. 1186d8ff8a05Senami.It Sy ntpd 1187482c8f25SapbBoolean value. 1188fa72f5deSfairRuns 1189d8ff8a05Senami.Xr ntpd 8 1190c3b0e18dScjsand passes 1191d8ff8a05Senami.Sy ntpd_flags . 1192deb1dc05Slukem.It Sy ntpd_chrootdir 1193deb1dc05SlukemA string. 1194deb1dc05SlukemIf non-blank and 1195deb1dc05Slukem.Sy ntpd 1196482c8f25Sapbis true, run 1197deb1dc05Slukem.Xr ntpd 8 1198deb1dc05Slukemas the unprivileged user and group 1199deb1dc05Slukem.Sq ntpd , 1200deb1dc05Slukem.Xr chroot 2 Ns ed 1201deb1dc05Slukemto 1202deb1dc05Slukem.Sy ntpd_chrootdir . 1203a66d4123Suwe.Li \&${ntpd_chrootdir} Ns Pa /var/run/log 1204deb1dc05Slukemwill be added to the list of log sockets that 1205deb1dc05Slukem.Xr syslogd 8 1206deb1dc05Slukemlistens to. 12073fb96042SlukemThis option requires that the kernel has 1208a66d4123Suwe.D1 Cd pseudo-device clockctl 120956dc20a9Slukemcompiled in, and that 121056dc20a9Slukem.Pa /dev/clockctl 121156dc20a9Slukemis present. 12125a07b7faSjmmv.It Sy postfix 1213482c8f25SapbBoolean value. 12145a07b7faSjmmvStarts 12155a07b7faSjmmv.Xr postfix 1 12165a07b7faSjmmvmail system. 12179d49c249Slukem.It Sy sshd 1218482c8f25SapbBoolean value. 12199d49c249SlukemRuns 12209d49c249Slukem.Xr sshd 8 12219d49c249Slukemand passes 12229d49c249Slukem.Sy sshd_flags . 12235a07b7faSjmmv.It Sy syslogd 1224482c8f25SapbBoolean value. 1225fa72f5deSfairRuns 12265a07b7faSjmmv.Xr syslogd 8 12275a07b7faSjmmvand passes 12285a07b7faSjmmv.Sy syslogd_flags . 12295a07b7faSjmmv.It Sy timed 1230482c8f25SapbBoolean value. 12315a07b7faSjmmvRuns 12325a07b7faSjmmv.Xr timed 8 12335a07b7faSjmmvand passes 12345a07b7faSjmmv.Sy timed_flags . 12355a07b7faSjmmvThe 1236a66d4123Suwe.Fl M 12375a07b7faSjmmvoption allows 12385a07b7faSjmmv.Xr timed 8 12395a07b7faSjmmvto be a master time source as well as a slave. 12405a07b7faSjmmvIf you are also running 12415a07b7faSjmmv.Xr ntpd 8 , 12425a07b7faSjmmvonly one machine running both should have the 1243a66d4123Suwe.Fl M 12445a07b7faSjmmvflag given to 12455a07b7faSjmmv.Xr timed 8 . 1246562d9998Sleot.It Sy unbound 1247562d9998SleotBoolean value. 1248562d9998SleotRuns 1249562d9998Sleot.Xr unbound 8 . 1250562d9998Sleot.It Sy unbound_chrootdir 1251562d9998SleotA string. 1252562d9998SleotIf non-blank and 1253562d9998Sleot.Sy unbound 1254562d9998Sleotis true, run 1255562d9998Sleot.Xr unbound 8 1256562d9998Sleot.Xr chroot 2 Ns ed 1257562d9998Sleotto 1258562d9998Sleot.Sy unbound_chrootdir . 12595a07b7faSjmmv.El 12605a07b7faSjmmv.Ss Routing daemons 12615a07b7faSjmmv.Bl -tag -width net_interfaces 1262c3b0e18dScjs.It Sy mrouted 1263482c8f25SapbBoolean value. 1264fa72f5deSfairRuns 1265c3b0e18dScjs.Xr mrouted 8 , 1266fa72f5deSfairthe DVMRP multicast routing protocol daemon. 1267fa72f5deSfairPasses 1268c3b0e18dScjs.Sy mrouted_flags . 126994e64335Sitojun.It Sy route6d 1270482c8f25SapbBoolean value. 127194e64335SitojunRuns 127294e64335Sitojun.Xr route6d 8 , 127394e64335Sitojunthe RIPng routing protocol daemon for IPv6. 127494e64335SitojunPasses 127594e64335Sitojun.Sy route6d_flags . 12765a07b7faSjmmv.It Sy routed 1277482c8f25SapbBoolean value. 12785a07b7faSjmmvRuns 12795a07b7faSjmmv.Xr routed 8 , 12805a07b7faSjmmvthe RIP routing protocol daemon. 12815a07b7faSjmmvPasses 12825a07b7faSjmmv.Sy routed_flags . 1283482c8f25Sapb.\" This should be false 12845a07b7faSjmmv.\" if 12855a07b7faSjmmv.\" .Sy gated 1286482c8f25Sapb.\" is true. 1287cdd442b6Scjs.El 1288e84dcc69Swiz.Ss Daemons used to boot other hosts over a network 12890658ff6aSmikel.Bl -tag -width net_interfaces 1290c3b0e18dScjs.It Sy bootparamd 1291482c8f25SapbBoolean value. 1292fa72f5deSfairRuns 1293c3b0e18dScjs.Xr bootparamd 8 , 1294c3b0e18dScjsthe boot parameter server, with 12950658ff6aSmikel.Sy bootparamd_flags 1296fa72f5deSfairas options. 1297fa72f5deSfairUsed to boot 1298698eafc2Smikel.Nx 1299ad36999fSwizand SunOS 4.x systems. 1300c3b0e18dScjs.It Sy dhcpd 1301482c8f25SapbBoolean value. 1302fa72f5deSfairRuns 1303c3b0e18dScjs.Xr dhcpd 8 , 1304fa72f5deSfairthe Dynamic Host Configuration Protocol (DHCP) daemon, 1305fa72f5deSfairfor assigning IP addresses to hosts and passing boot information. 1306fa72f5deSfairPasses 1307c3b0e18dScjs.Sy dhcpd_flags . 13085ab1f61bSlukem.It Sy dhcrelay 1309482c8f25SapbBoolean value. 13105ab1f61bSlukemRuns 13115ab1f61bSlukem.Xr dhcrelay 8 . 13125ab1f61bSlukemPasses 13135ab1f61bSlukem.Sy dhcrelay_flags . 1314c3b0e18dScjs.It Sy mopd 1315482c8f25SapbBoolean value. 1316fa72f5deSfairRuns 1317c3b0e18dScjs.Xr mopd 8 , 1318ad36999fSwizthe DEC MOP protocol daemon; used for booting VAX and other DEC 1319fa72f5deSfairmachines. 1320c3b0e18dScjsPasses 1321c3b0e18dScjs.Sy mopd_flags . 1322deb1dc05Slukem.It Sy ndbootd 1323482c8f25SapbBoolean value. 1324deb1dc05SlukemRuns 1325deb1dc05Slukem.Xr ndbootd 8 , 1326deb1dc05Slukemthe Sun Network Disk (ND) Protocol server. 1327deb1dc05SlukemPasses 1328deb1dc05Slukem.Sy ndbootd_flags . 13295a07b7faSjmmv.It Sy rarpd 1330482c8f25SapbBoolean value. 13315a07b7faSjmmvRuns 13325a07b7faSjmmv.Xr rarpd 8 , 13335a07b7faSjmmvthe reverse ARP daemon, often used to boot 13345a07b7faSjmmv.Nx 13355a07b7faSjmmvand Sun workstations. 13365a07b7faSjmmvPasses 13375a07b7faSjmmv.Sy rarpd_flags . 13385a07b7faSjmmv.It Sy rbootd 1339482c8f25SapbBoolean value. 13405a07b7faSjmmvRuns 13415a07b7faSjmmv.Xr rbootd 8 , 1342ad36999fSwizthe HP boot protocol daemon; used for booting HP workstations. 13435a07b7faSjmmvPasses 13445a07b7faSjmmv.Sy rbootd_flags . 134594e64335Sitojun.It Sy rtadvd 1346482c8f25SapbBoolean value. 134794e64335SitojunRuns 134894e64335Sitojun.Xr rtadvd 8 , 134994e64335Sitojunthe IPv6 router advertisement daemon, which is used to advertise 135094e64335Sitojuninformation about the subnet to IPv6 end hosts. 135194e64335SitojunPasses 135294e64335Sitojun.Sy rtadvd_flags . 13533d13a591SlukemThis is only for IPv6 routers, so set 13543d13a591Slukem.Sy ip6mode 13555ab1f61bSlukemto 1356a66d4123Suwe.Ql router 13575ab1f61bSlukemif you use it. 13585fb9b573Smrg.El 1359e84dcc69Swiz.Ss X Window System daemons 13605ab1f61bSlukem.Bl -tag -width net_interfaces 13615ab1f61bSlukem.It Sy xdm 1362482c8f25SapbBoolean value. 13635ab1f61bSlukemRuns the 13645ab1f61bSlukem.Xr xdm 1 13655ab1f61bSlukemX display manager. 13665ab1f61bSlukemThese X daemons are available only with the optional X distribution of 13675ab1f61bSlukem.Nx . 13685a07b7faSjmmv.It Sy xfs 1369482c8f25SapbBoolean value. 13705a07b7faSjmmvRuns the 13715a07b7faSjmmv.Xr xfs 1 13725a07b7faSjmmvX11 font server, which supplies local X font files to X terminals. 13735ab1f61bSlukem.El 1374e84dcc69Swiz.Ss NIS (YP) daemons 13750658ff6aSmikel.Bl -tag -width net_interfaces 1376c3b0e18dScjs.It Sy ypbind 1377482c8f25SapbBoolean value. 1378fa72f5deSfairRuns 1379c3b0e18dScjs.Xr ypbind 8 , 1380ad36999fSwizwhich lets NIS (YP) clients use information from a NIS server. 1381fa72f5deSfairPasses 1382c3b0e18dScjs.Sy ypbind_flags . 13835a07b7faSjmmv.It Sy yppasswdd 1384482c8f25SapbBoolean value. 13855a07b7faSjmmvRuns 13865a07b7faSjmmv.Xr yppasswdd 8 , 1387ad36999fSwizwhich allows remote NIS users to update password on master server. 13885a07b7faSjmmvPasses 13895a07b7faSjmmv.Sy yppasswdd_flags . 1390c3b0e18dScjs.It Sy ypserv 1391482c8f25SapbBoolean value. 1392fa72f5deSfairRuns 1393c3b0e18dScjs.Xr ypserv 8 , 1394ad36999fSwizthe NIS (YP) server for distributing information from certain files 1395ad36999fSwizin 1396cdd442b6Scjs.Pa /etc . 1397c3b0e18dScjsPasses 1398c3b0e18dScjs.Sy ypserv_flags . 1399c3b0e18dScjsThe 1400c4b443acSwiz.Fl d 1401c3b0e18dScjsflag causes it to use DNS for lookups in 1402c3b0e18dScjs.Pa /etc/hosts 1403c3b0e18dScjsthat fail. 14045a07b7faSjmmv.El 14055a07b7faSjmmv.Ss NFS daemons and parameters 14065a07b7faSjmmv.Bl -tag -width net_interfaces 14075a07b7faSjmmv.It Sy amd 1408482c8f25SapbBoolean value. 1409fa72f5deSfairRuns 14105a07b7faSjmmv.Xr amd 8 , 14115a07b7faSjmmvthe automounter daemon, which automatically mounts NFS file systems 14125a07b7faSjmmvwhenever a file or directory within that file system is accessed. 1413fa72f5deSfairPasses 14145a07b7faSjmmv.Sy amd_flags . 14155a07b7faSjmmv.It Sy amd_dir 14165a07b7faSjmmvA string. 14175a07b7faSjmmvThe 14185a07b7faSjmmv.Xr amd 8 14195a07b7faSjmmvmount directory. 14205a07b7faSjmmvUsed only if 14215a07b7faSjmmv.Sy amd 1422482c8f25Sapbis true. 14235a07b7faSjmmv.It Sy lockd 1424482c8f25SapbBoolean value. 14255a07b7faSjmmvRuns 14265a07b7faSjmmv.Xr rpc.lockd 8 14275a07b7faSjmmvif 14285a07b7faSjmmv.Sy nfs_server 14295a07b7faSjmmvand/or 14305a07b7faSjmmv.Sy nfs_client 1431482c8f25Sapbare true. 14325a07b7faSjmmvPasses 14335a07b7faSjmmv.Sy lockd_flags . 1434d5decca8Slukem.It Sy mountd 1435482c8f25SapbBoolean value. 1436d5decca8SlukemRuns 1437d5decca8Slukem.Xr mountd 8 1438d5decca8Slukemand passes 1439d5decca8Slukem.Sy mountd_flags . 14405fb9b573Smrg.It Sy nfs_client 1441482c8f25SapbBoolean value. 1442d8ff8a05SenamiThe number of local NFS asynchronous I/O server is now controlled via 1443d8ff8a05Senami.Xr sysctl 8 . 1444cdd442b6Scjs.It Sy nfs_server 1445482c8f25SapbBoolean value. 1446fa72f5deSfairSets up a host to be a NFS server by running 1447d5decca8Slukem.Xr nfsd 8 1448fa72f5deSfairand passing 1449d5decca8Slukem.Sy nfsd_flags . 1450c3b0e18dScjs.It Sy statd 1451482c8f25SapbBoolean value. 1452fa72f5deSfairRuns 1453c3b0e18dScjs.Xr rpc.statd 8 , 1454c3b0e18dScjsa status monitoring daemon used when 1455fa72f5deSfair.Xr rpc.lockd 8 1456deb1dc05Slukemis running, if 1457c3b0e18dScjs.Sy nfs_server 1458deb1dc05Slukemand/or 1459c3b0e18dScjs.Sy nfs_client 1460482c8f25Sapbare true. 1461fa72f5deSfairPasses 1462c3b0e18dScjs.Sy statd_flags . 14635fb9b573Smrg.El 1464b52bb129Splunky.Ss Bluetooth support 1465a5c89047Sgdamore.Bl -tag -width net_interfaces 1466b52bb129Splunky.It Sy bluetooth 1467482c8f25SapbBoolean value. 1468b52bb129SplunkyConfigure Bluetooth support, comprising the following tasks: 1469b52bb129Splunky.Bl -dash -compact 1470b52bb129Splunky.It 1471b52bb129Splunkyattach serial Bluetooth controllers as listed in the 147248de9fb8Splunky.Pa /etc/bluetooth/btattach.conf 1473b52bb129Splunkyconfiguration file. 1474b52bb129Splunky.It 1475b52bb129Splunkyenable Bluetooth controllers with useful defaults, plus 1476b52bb129Splunkyadditional options as detailed below. 1477b52bb129Splunky.It 1478b52bb129Splunkyoptionally, start 1479b52bb129Splunky.Xr bthcid 8 , 1480b52bb129Splunkythe Bluetooth Link Key/PIN Code manager, passing 1481b52bb129Splunky.Sy bthcid_flags . 1482b52bb129Splunky.It 1483b52bb129Splunkyconfigure local Bluetooth drivers as listed in the 1484b52bb129Splunky.Pa /etc/bluetooth/btdevctl.conf 1485b52bb129Splunkyconfiguration file. 1486b52bb129Splunky.It 1487b52bb129Splunkyoptionally, start 1488b52bb129Splunky.Xr sdpd 8 , 1489b52bb129Splunkythe Service Discovery server, passing 1490b52bb129Splunky.Sy sdpd_flags . 1491b52bb129Splunky.El 1492a5c89047Sgdamore.It Sy btconfig_devices 1493b52bb129SplunkyA string. 1494b52bb129SplunkyAn optional list of Bluetooth controllers to configure. 1495b52bb129Splunky.It Sy btconfig_{dev} 1496b52bb129SplunkyA string. 1497b52bb129SplunkyAdditional configuration options for specific Bluetooth controllers. 1498a5c89047Sgdamore.It Sy btconfig_args 1499b52bb129SplunkyA string. 1500b52bb129SplunkyAdditional configuration options for Bluetooth controllers without 1501b52bb129Splunkyspecific options as above. 1502a5c89047Sgdamore.It Sy bthcid 1503482c8f25SapbBoolean value. 1504b52bb129SplunkyIf set to false, disable starting the Bluetooth Link Key/PIN Code manager. 1505a5c89047Sgdamore.It Sy sdpd 1506482c8f25SapbBoolean value. 1507b52bb129SplunkyIf set to false, disable starting the Bluetooth Service Discovery server. 1508a5c89047Sgdamore.El 1509e84dcc69Swiz.Ss Other daemons 15100658ff6aSmikel.Bl -tag -width net_interfaces 1511b1f54665Sjruoho.It Sy identd 1512b1f54665SjruohoBoolean value. 1513b1f54665SjruohoRuns 1514b1f54665Sjruoho.Xr identd 8 , 1515b1f54665Sjruohothe daemon for the user identification protocol. 1516b1f54665SjruohoPasses 1517b1f54665Sjruoho.Sy identd_flags . 1518b1f54665Sjruoho.It Sy iscsi_target 1519b1f54665SjruohoBoolean value. 1520b1f54665SjruohoRuns the server for iSCSI requests, 1521b1f54665Sjruoho.Xr iscsi-target 8 . 1522b1f54665SjruohoPasses 1523b1f54665Sjruoho.Sy iscsi_target_flags . 15245a07b7faSjmmv.It Sy kdc 1525482c8f25SapbBoolean value. 15265a07b7faSjmmvRuns the 15275a07b7faSjmmv.Xr kdc 8 15285a07b7faSjmmvKerberos v4 and v5 server. 15295a07b7faSjmmvThis should be run on Kerberos master and slave servers. 1530cdd442b6Scjs.It Sy rwhod 1531482c8f25SapbBoolean value. 1532fa72f5deSfairRuns 15330658ff6aSmikel.Xr rwhod 8 1534c3b0e18dScjsto support the 15350658ff6aSmikel.Xr rwho 1 1536fa72f5deSfairand 1537fa72f5deSfair.Xr ruptime 1 1538fa72f5deSfaircommands. 1539b985414bSchristos.It Sy autofs 1540b985414bSchristosBoolean value. 1541b985414bSchristosIf set to 1542a66d4123Suwe.Ql YES , 1543b985414bSchristosstart the 1544b985414bSchristos.Xr automount 8 1545b985414bSchristosutility and the 1546b985414bSchristos.Xr automountd 8 1547b985414bSchristosand 1548b985414bSchristos.Xr autounmountd 8 1549b985414bSchristosdaemons at boot time. 1550b985414bSchristos.It Sy automount_flags 1551b985414bSchristosA string. 1552b985414bSchristosIf 1553b985414bSchristos.Sy autofs 1554b985414bSchristosis set to 1555a66d4123Suwe.Ql YES , 1556b985414bSchristosthese are the flags to pass to the 1557b985414bSchristos.Xr automount 8 1558b985414bSchristosprogram. 1559b985414bSchristosBy default no flags are passed. 1560b985414bSchristos.It Sy automountd_flags 1561b985414bSchristosA string. 1562b985414bSchristosIf 1563b985414bSchristos.Sy autofs 1564b985414bSchristosis set to 1565a66d4123Suwe.Ql YES , 1566b985414bSchristosthese are the flags to pass to the 1567b985414bSchristos.Xr automountd 8 1568b985414bSchristosdaemon. 1569b985414bSchristosBy default no flags are passed. 1570b985414bSchristos.It Sy autounmountd_flags 1571b985414bSchristosA string. 1572b985414bSchristosIf 1573b985414bSchristos.Sy autofs 1574b985414bSchristosis set to 1575a66d4123Suwe.Ql YES , 1576b985414bSchristosthese are the flags to pass to the 1577b985414bSchristos.Xr autounmountd 8 1578b985414bSchristosdaemon. 1579b985414bSchristosBy default no flags are passed. 15805ab1f61bSlukem.El 1581e84dcc69Swiz.Ss Hardware daemons 15825ab1f61bSlukem.Bl -tag -width net_interfaces 15835ab1f61bSlukem.It Sy apmd 1584482c8f25SapbBoolean value. 15855ab1f61bSlukemRuns 15865ab1f61bSlukem.Xr apmd 8 15875ab1f61bSlukemand passes 15885ab1f61bSlukem.Sy apmd_flags . 15896074aec5Srpaulo.It Sy irdaattach 1590482c8f25SapbBoolean value. 15916074aec5SrpauloRuns 15926074aec5Srpaulo.Xr irdaattach 8 15936074aec5Srpauloand passes 15946074aec5Srpaulo.Sy irdaattach_flags . 15955a07b7faSjmmv.It Sy moused 1596482c8f25SapbBoolean value. 15975a07b7faSjmmvRuns 15985a07b7faSjmmv.Xr moused 8 , 15995a07b7faSjmmvto pass serial mouse data to the wscons mouse mux. 16005a07b7faSjmmvPasses 16015a07b7faSjmmv.Sy moused_flags . 1602a8e990c9Smrg.It Sy screenblank 1603482c8f25SapbBoolean value. 1604fa72f5deSfairRuns 1605fa72f5deSfair.Xr screenblank 1 1606a8e990c9Smrgand passes 1607a8e990c9Smrg.Sy screenblank_flags . 16085ab1f61bSlukem.It Sy wscons 1609482c8f25SapbBoolean value. 16105ab1f61bSlukemConfigures the 16115ab1f61bSlukem.Xr wscons 4 16125ab1f61bSlukemconsole driver, from the configuration file 16135ab1f61bSlukem.Pa /etc/wscons.conf . 1614c4963798Swiz.It Sy wsmoused 1615482c8f25SapbBoolean value. 1616c4963798SwizRuns 1617c4963798Swiz.Xr wsmoused 8 , 1618c4963798Swizto provide copy and paste text support in wscons displays. 1619c4963798SwizPasses 1620c4963798Swiz.Sy wsmoused_flags . 16215fb9b573Smrg.El 16225fb9b573Smrg.Sh FILES 1623ad43a4d7Slukem.Bl -tag -width /etc/defaults/rc.conf -compact 1624ad43a4d7Slukem.It Pa /etc/rc.conf 1625ad43a4d7SlukemThe file 1626ad43a4d7Slukem.Nm 1627ad43a4d7Slukemresides in 1628ad43a4d7Slukem.Pa /etc . 1629ad43a4d7Slukem.It Pa /etc/defaults/rc.conf 1630ad43a4d7SlukemDefault settings for 1631990562bfSwiz.Nm , 16329b40da66Slukemsourced by 16339b40da66Slukem.Nm 16349b40da66Slukembefore the end-user configuration section. 16359b40da66Slukem.It Pa /etc/rc.conf.d/ Ns Ar foo 16369b40da66Slukem.Ar foo Ns No -specific 16379b40da66Slukem.Nm 16389b40da66Slukemoverrides. 1639ad43a4d7Slukem.El 16405fb9b573Smrg.Sh SEE ALSO 1641698eafc2Smikel.Xr boot 8 , 1642d8ff8a05Senami.Xr rc 8 , 16435a07b7faSjmmv.Xr rc.d 8 , 1644e7594c01Satatat.Xr rc.subr 8 , 16455a07b7faSjmmv.Xr rcorder 8 16465fb9b573Smrg.Sh HISTORY 16475fb9b573SmrgThe 16485fb9b573Smrg.Nm 16495fb9b573Smrgfile appeared in 16505fb9b573Smrg.Nx 1.3 . 1651