xref: /netbsd-src/share/man/man5/rc.conf.5 (revision 08c81a9c2dc8c7300e893321eb65c0925d60871c)
1.\"	$NetBSD: rc.conf.5,v 1.67 2002/08/29 10:45:17 wiz Exp $
2.\"
3.\" Copyright (c) 1996 Matthew R. Green
4.\" Copyright (c) 1997 Curt J. Sampson
5.\" Copyright (c) 1997 Michael W. Long
6.\" Copyright (c) 1998-2002 The NetBSD Foundation, Inc.
7.\" All rights reserved.
8.\"
9.\" This document is derived from works contributed to The NetBSD Foundation
10.\" by Luke Mewburn.
11.\"
12.\" Redistribution and use in source and binary forms, with or without
13.\" modification, are permitted provided that the following conditions
14.\" are met:
15.\" 1. Redistributions of source code must retain the above copyright
16.\"    notice, this list of conditions and the following disclaimer.
17.\" 2. Redistributions in binary form must reproduce the above copyright
18.\"    notice, this list of conditions and the following disclaimer in the
19.\"    documentation and/or other materials provided with the distribution.
20.\" 3. The name of the author may not be used to endorse or promote products
21.\"    derived from this software without specific prior written permission.
22.\"
23.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
24.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
27.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
30.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
31.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.Dd June 17, 2002
36.Dt RC.CONF 5
37.Os
38.\" turn off hyphenation
39.hym 999
40.Sh NAME
41.Nm rc.conf
42.Nd system startup configuration file
43.Sh DESCRIPTION
44The
45.Nm
46file specifies which services are enabled during system startup by
47the startup scripts invoked by
48.Pa /etc/rc
49(see
50.Xr rc 8 ) ,
51and the shutdown scripts invoked by
52.Pa /etc/rc.shutdown .
53The
54.Nm
55file is a shell script that is sourced by
56.Xr rc 8 ,
57meaning that
58.Nm
59must contain valid shell commands.
60.Pp
61Listed below are the standard
62.Nm
63variables that may be set, the values to which each may be set,
64a brief description of what each variable does, and a reference to
65relevant manual pages. Third party packages may test for additional
66variables.
67.Pp
68Most variables are one of two types: enabling variables or flags
69variables.
70Enabling variables, such as
71.Sy inetd ,
72are generally named after the program or the system they enable,
73and are set to
74.Sq YES
75or
76.Sq NO .
77Flags variables, such as
78.Sy inetd_flags
79have the same name with "_flags" appended, and determine what
80arguments are passed to the program if it is enabled.
81.Pp
82If a variable that
83.Xr rc 8
84expects to be set is not set, or the value is not one of the allowed
85values, a warning will be printed.
86.Pp
87By default,
88.Nm
89reads
90.Pa /etc/defaults/rc.conf
91(if it is readable)
92to obtain default values for various variables, and the end-user
93may override these by appending appropriate entries to the end of
94.Nm "" .
95.Pp
96.Xr rc.d 8
97scripts that use
98.Ic load_rc_config
99from
100.Xr rc.subr 8
101also support sourcing an optional end-user provided per-script override
102file
103.Pa /etc/rc.conf.d/ Ns Ar service ,
104(where
105.Ar service
106is the contents of the
107.Sy name
108variable in the
109.Xr rc.d 8
110script).
111This may contain variable overrides, including allowing the end-user
112to override various
113.Ic run_rc_command
114.Xr rc.d 8
115control variables, and thus changing the operation of the script
116without requiring editing of the script.
117.Ss Overall control
118.Bl -tag -width net_interfaces
119.It Sy rc_configured
120.Sq YES
121or
122.Sq NO .
123If not set to
124.Sq YES
125then the system will drop into single-user mode during boot.
126.It Sy rc_fast_and_loose
127If set to a non-empty string,
128each script in
129.Pa /etc/rc.d
130will be executed in the current shell rather than a sub shell.
131This may be faster on slow machines that have an expensive
132.Xr fork 2
133operation.
134.Bl -hang
135.It Em Note :
136Use this at your own risk!
137A rogue command or script may inadvertently prevent boot to multiuser.
138.El
139.It Sy rc_rcorder_flags
140A string.
141Extra arguments to the
142.Xr rcorder 8
143run by
144.Pa /etc/rc .
145.It Sy do_rcshutdown
146.Sq YES
147or
148.Sq NO .
149If set to
150.Sq NO ,
151.Xr shutdown 8
152will not run
153.Pa /etc/rc.shutdown .
154.It Sy rcshutdown_rcorder_flags
155A string.
156Extra arguments to the
157.Xr rcorder 8
158run by
159.Pa /etc/rc.shutdown .
160.It Sy rcshutdown_timeout
161A number.
162If non-blank, use this as the number of seconds to run a watchdog timer for
163which will terminate
164.Pa /etc/rc.shutdown
165if the timer expires before the shutdown script completes.
166.El
167.Ss Basic network configuration
168.Bl -tag -width net_interfaces
169.It Sy hostname
170A string.
171Name of host.
172If empty or not set, then the contents of
173.Pa /etc/myname
174(if it exists) are used.
175.It Sy defaultroute
176A string.
177Default network route.
178If empty or not set, then the contents of
179.Pa /etc/mygate
180(if it exists) are used.
181.It Sy domainname
182A string.
183.Tn NIS
184(YP) domain of host.
185If empty or not set, then the contents of
186.Pa /etc/defaultdomain
187(if it exists) are used.
188.El
189.Ss Boottime file-system and swap configuration
190.Bl -tag -width net_interfaces
191.It Sy critical_filesystems_local
192A string.
193File systems mounted very early in the system boot before networking
194services are available.
195Usually
196.Pa /var
197is part of this, because it is needed by services such as
198.Xr dhclient 8
199which may be required to get the network operational.
200.It Sy critical_filesystems_remote
201A string.
202File systems such as
203.Pa /usr
204that may require network services to be available to mount,
205that must be available early in the system boot for general services to use.
206.It Sy no_swap
207.Sq YES
208or
209.Sq NO .
210Set the
211.Sy no_swap
212variable to
213.Sq YES
214if you have configured your system with no swap on purpose.
215If not set to
216.Sq YES ,
217and no swap devices
218are configured, the system will warn you.
219.It Sy swapoff
220.Sq YES
221or
222.Sq NO .
223Remove block-type swap devices at shutdown time.
224Useful if swapping onto RAIDframe devices.
225.El
226.Ss One-time actions to perform or programs to run on boot-up
227.Bl -tag -width net_interfaces
228.It Sy lkm
229.Sq YES
230or
231.Sq NO .
232Runs
233.Pa /etc/rc.lkm .
234.It Sy savecore
235.Sq YES
236or
237.Sq NO .
238Runs the
239.Xr savecore 8
240utility.
241Passes
242.Sy savecore_flags .
243.It Sy clear_tmp
244.Sq YES
245or
246.Sq NO .
247Clear /tmp after reboot.
248.It Sy update_motd
249.Sq YES
250or
251.Sq NO .
252Updates the
253.Nx
254version string in the
255.Pa /etc/motd
256file to reflect the version of the running kernel.
257See
258.Xr motd 5 .
259.It Sy dmesg
260.Sq YES
261or
262.Sq NO .
263Create
264.Pa /var/run/dmesg.boot
265from the output of
266.Xr dmesg 8 .
267Passes
268.Sy dmesg_flags .
269.It Sy accounting
270.Sq YES
271or
272.Sq NO .
273Enables process accounting with
274.Xr accton 8 .
275Requires
276.Pa /var/account/acct
277to exist.
278.It Sy newsyslog
279.Sq YES
280or
281.Sq NO .
282Run
283.Nm newsyslog
284to trim logfiles before syslogd starts.  Intended for laptop users.
285Passes
286.Sy newsyslog_flags .
287.It Sy tpctl
288.Sq YES
289or
290.Sq NO .
291Run
292.Xr tpctl 8
293to calibrate touch panel device.
294Passes
295.Sy tpctl_flags .
296.El
297.Ss System security setting
298.Bl -tag -width net_interfaces
299.It Sy securelevel
300A number.
301The system securelevel is set to the specified value early
302in the boot process, before any external logins, or other programs
303that run users job, are started.
304If set to nothing, the default action is taken, as described in
305.Xr init 8 ,
306which contains definitive information about the system securelevel.
307Note that setting
308.Sy securelevel
309to 0 in
310.Nm
311will actually result in the system booting with securelevel set to 1, as
312.Xr init 8
313will raise the level when
314.Xr rc 8
315completes.
316.El
317.Ss Networking startup
318.Bl -tag -width net_interfaces
319.It Sy ipfilter
320.Sq YES
321or
322.Sq NO .
323Runs
324.Xr ipf 8
325to load in packet filter specifications from
326.Pa /etc/ipf.conf
327at network boot time, before any interfaces are configured.
328See
329.Xr ipf.conf 5 .
330.It Sy ipnat
331.Sq YES
332or
333.Sq NO .
334Runs
335.Xr ipnat 8
336to load in the IP network address translation (NAT) rules from
337.Pa /etc/ipnat.conf
338at network boot time, before any interfaces are configured.
339See
340.Xr ipnat.conf 5 .
341.It Sy ipfs
342.Sq YES
343or
344.Sq NO .
345Runs
346.Xr ipfs 8
347to save and restore information for ipnat and ipfilter state tables.
348The information is stored in
349.Pa /var/db/ipf/ipstate.ipf
350and
351.Pa /var/db/ipf/ipnat.ipf .
352Passes
353.Sy ipfs_flags .
354.It Sy ipsec
355.Sq YES
356or
357.Sq NO .
358Runs
359.Xr setkey 8
360to load in IPsec manual keys and policies from
361.Pa /etc/ipsec.conf
362at network boot time, before any interfaces are configured.
363.It Sy ipmon
364.Sq YES
365or
366.Sq NO .
367Runs
368.Xr ipmon 8
369to read
370.Xr ipf 8
371packet log information and log it to a file or the system log.
372Passes
373.Sy ipmon_flags .
374.It Sy racoon
375.Sq YES
376or
377.Sq NO .
378Runs
379.Xr racoon 8 ,
380the IKE (ISAKMP/Oakley) key management daemon.
381.It Sy auto_ifconfig
382.Sq YES
383or
384.Sq NO .
385Sets the
386.Sy net_interfaces
387variable (see below) to the output of
388.Xr ifconfig 8
389with the
390.Dq Li -l
391flag and suppresses warnings about interfaces in this list that
392do not have an ifconfig file or variable.
393.It Sy net_interfaces
394A string.
395The list of network interfaces to be configured at boot time.
396For each interface "xxN", the system first looks for ifconfig
397parameters in
398.Pa /etc/ifconfig.xxN
399and then in the variable
400.Sy ifconfig_xxN .
401The contents of the file or the variable are handed to ifconfig
402after the interface name.
403If
404.Sy auto_ifconfig
405is set to "NO" and neither the file nor the variable is found,
406a warning is printed.
407Refer to
408.Xr ifconfig.if 5
409for more details on
410.Pa /etc/ifconfig.xxN .
411.It Sy ifaliases_*
412A string.
413List of
414.Sq Em "address netmask"
415pairs to configure additional network addresses for the given
416configured interface
417.Dq *
418(e.g.
419.Sy ifaliases_le0 ) .
420If
421.Em netmask
422is
423.Dq - ,
424then use the default netmask for the interface.
425.Pp
426.Sy ifaliases_*
427covers limited cases only and considered unrecommended.
428We recommend using
429.Pa /etc/ifconfig.xxN
430with multiple lines instead.
431.It Sy flushroutes
432.Sq YES
433or
434.Sq NO .
435Flushes the route table on networking startup.
436Useful when coming up to multiuser mode after going down to
437single-user mode.
438.It Sy dhclient
439.Sq YES
440or
441.Sq NO .
442Set to
443.Sq YES
444to configure some or all network interfaces using
445the DHCP client.
446If you set
447.Sy dhclient
448to
449.Sq YES ,
450you must either have
451.Pa /var
452in
453.Sy critical_filesystems_local ,
454as part of
455.Pa / ,
456or direct the DHCP client to store the leases file on the root
457file system by modifying the
458.Sy dhclient_flags
459variable.
460You must not provide ifconfig information or ifaliases
461information for any interface that is to be configured using the DHCP client.
462Interface aliases can be set up in the DHCP client configuration
463file if needed - see
464.Xr dhclient.conf 5
465for details.
466.Pp
467Passes
468.Sy dhclient_flags
469to the DHCP client.
470See
471.Xr dhclient 8
472for complete documentation.
473If you wish to configure all broadcast
474network interfaces using the DHCP client, you can leave this blank.
475To configure only specific interfaces, name the interfaces to be configured
476on the command line.
477.Pp
478If you must run the DHCP client before mounting critical filesystems,
479then you should specify an alternate location for the DHCP client's lease
480file in the
481.Sy dhclient_flags
482variable - for example, "-lf /tmp/dhclient.leases".
483.It Sy ntpdate
484.Sq YES
485or
486.Sq NO .
487Runs
488.Xr ntpdate 8
489to set the system time from one of the hosts in
490.Sy ntpdate_hosts .
491If
492.Sy ntpdate_hosts
493is empty, it will attempt to find a list of hosts in
494.Pa /etc/ntp.conf .
495Passes
496.Sy ntpdate_flags .
497.It Sy ppp_peers
498A string.
499If
500.Sy ppp_peers
501is not empty, then
502.Pa /etc/rc.d/ppp
503will check each word in
504.Sy ppp_peers
505for a corresponding ppp configuration file in
506.Pa /etc/ppp/peers
507and will call
508.Xr pppd 8
509with the
510.Dq call Sy peer
511option.
512.It Sy ip6mode
513A string.
514An IPv6 node can be a router
515.Pq nodes that forward packet for others
516or a host
517.Pq nodes that do not forward .
518A host can be autoconfigured
519based on the information advertised by adjacent IPv6 routers.
520By setting
521.Sy ip6mode
522to
523.Dq Li router ,
524.Dq Li host ,
525or
526.Dq Li autohost ,
527you can configure your node as a router,
528a non-autoconfigured host, or an autoconfigured host.
529Invalid values will be ignored, and the node will be configured as
530a non-autoconfigured host.
531You may want to check
532.Sy rtsol
533and
534.Sy rtsold
535as well, if you set the variable to
536.Dq Li autohost .
537.It Sy ip6sitelocal
538.Sq YES
539or
540.Sq NO .
541If you intend to use IPv6 site-local addresses in your site, set it to
542.Sq YES .
543Otherwise, reject routes will get installed on boot to avoid misconfiguration
544relating to site-local addresses.
545.It Sy rtsol
546.Sq YES
547or
548.Sq NO .
549Run
550.Xr rtsol 8 ,
551router solicitation command for IPv6 hosts.
552On nomadic hosts like notebook computers, you may want to enable
553.Sy rtsold
554as well.
555Passes
556.Sy rtsol_flags .
557This is only for autoconfigured IPv6 hosts, so set
558.Sy ip6mode
559to
560.Dq Li autohost
561if you use it.
562.It Sy ifwatchd
563.Sq YES
564or
565.Sq NO .
566Monitor dynamic interfaces and perform actions upon address changes.
567Passes
568.Sy ifwatchd_flags .
569.It Sy altq
570.Sq YES
571or
572.Sq NO .
573ALTQ configuration/monitoring daemon.
574Passes
575.Sy altqd_flags .
576.El
577.Ss Daemons required by other daemons
578.Bl -tag -width net_interfaces
579.It Sy inetd
580.Sq YES
581or
582.Sq NO .
583Runs the
584.Xr inetd 8
585daemon to start network server processes (as listed in
586.Pa /etc/inetd.conf )
587as necessary.
588Passes
589.Sy inetd_flags .
590The
591.Dq Li -l
592flag turns on libwrap connection logging.
593.It Sy rpcbind
594.Sq YES
595or
596.Sq NO .
597The
598.Xr rpcbind 8
599daemon is required for any
600.Xr rpc 3
601services.
602These include NFS,
603.Tn NIS ,
604.Xr bootparamd 8 ,
605.Xr rstatd 8 ,
606.Xr rusersd 8 ,
607and
608.Xr rwalld 8 .
609Passes
610.Sy rpcbind_flags .
611.El
612.Ss Commonly used daemons
613.Bl -tag -width net_interfaces
614.It Sy syslogd
615.Sq YES
616or
617.Sq NO .
618Runs
619.Xr syslogd 8
620and passes
621.Sy syslogd_flags .
622.It Sy cron
623.Sq YES
624or
625.Sq NO .
626Run
627.Xr cron 8 .
628.It Sy named
629.Sq YES
630or
631.Sq NO .
632Runs
633.Xr named 8
634and passes
635.Sy named_flags .
636.It Sy named_chrootdir
637A string.
638If non-blank and
639.Sy named
640is
641.Sq YES ,
642run
643.Xr named 8
644as the unprivileged user and group
645.Sq named ,
646.Xr chroot 2 Ns ed
647to
648.Sy named_chrootdir .
649.Pa Sy named_chrootdir Ns /var/run/log
650will be added to the list of log sockets that
651.Xr syslogd 8
652listens to.
653.It Sy timed
654.Sq YES
655or
656.Sq NO .
657Runs
658.Xr timed 8
659and passes
660.Sy timed_flags .
661The
662.Dq Li -M
663option allows
664.Xr timed 8
665to be a master time source as well as a slave.
666If you are also running
667.Xr ntpd 8 ,
668only one machine running both should have the
669.Dq Li -M
670flag given to
671.Xr timed 8 .
672.It Sy ntpd
673.Sq YES
674or
675.Sq NO .
676Runs
677.Xr ntpd 8
678and passes
679.Sy ntpd_flags .
680.It Sy ntpd_chrootdir
681A string.
682If non-blank and
683.Sy ntpd
684is
685.Sq YES ,
686run
687.Xr ntpd 8
688as the unprivileged user and group
689.Sq ntpd ,
690.Xr chroot 2 Ns ed
691to
692.Sy ntpd_chrootdir .
693.Pa Sy ntpd_chrootdir Ns Pa /var/run/log
694will be added to the list of log sockets that
695.Xr syslogd 8
696listens to.
697This option requires that the kernel has
698.Dl pseudo-device clockctl
699compiled in, and that
700.Pa /dev/clockctl
701is present.
702.It Sy sendmail
703.Sq YES
704or
705.Sq NO .
706Runs
707.Xr sendmail 8
708and passes
709.Sy sendmail_flags .
710.It Sy postfix
711.Sq YES
712or
713.Sq NO .
714Starts
715.Xr postfix 1
716mail system.
717.It Sy lpd
718.Sq YES
719or
720.Sq NO .
721Runs
722.Xr lpd 8
723and passes
724.Sy lpd_flags .
725The
726.Dq Li -l
727flag will turn on extra logging.
728.It Sy sshd
729.Sq YES
730or
731.Sq NO .
732Runs
733.Xr sshd 8
734and passes
735.Sy sshd_flags .
736.El
737.Ss Routing daemons
738.Bl -tag -width net_interfaces
739.It Sy routed
740.Sq YES
741or
742.Sq NO .
743Runs
744.Xr routed 8 ,
745the RIP routing protocol daemon.
746Passes
747.Sy routed_flags .
748.\" This should be
749.\" .Sq NO
750.\" if
751.\" .Sy gated
752.\" is
753.\" .Sq YES .
754.It Sy mrouted
755.Sq YES
756or
757.Sq NO .
758Runs
759.Xr mrouted 8 ,
760the DVMRP multicast routing protocol daemon.
761Passes
762.Sy mrouted_flags .
763.It Sy route6d
764.Sq YES
765or
766.Sq NO .
767Runs
768.Xr route6d 8 ,
769the RIPng routing protocol daemon for IPv6.
770Passes
771.Sy route6d_flags .
772.It Sy rtsold
773.Sq YES
774or
775.Sq NO .
776Runs
777.Xr rtsold 8 ,
778the IPv6 router solicitation daemon.
779.Xr rtsold 8
780periodically transmits router solicitation packets
781to find IPv6 routers on the network.
782This configuration is mainly for nomadic hosts like notebook computers.
783Stationary hosts should work fine with just
784.Sy rtsol .
785Passes
786.Sy rtsold_flags .
787This is only for autoconfigured IPv6 hosts, so set
788.Sy ip6mode
789to
790.Dq Li autohost
791if you use it.
792.El
793.Ss Daemons used to boot other hosts over a network
794.Bl -tag -width net_interfaces
795.It Sy rarpd
796.Sq YES
797or
798.Sq NO .
799Runs
800.Xr rarpd 8 ,
801the reverse ARP daemon, often used to boot
802.Nx
803and Sun workstations.
804Passes
805.Sy rarpd_flags .
806.It Sy bootparamd
807.Sq YES
808or
809.Sq NO .
810Runs
811.Xr bootparamd 8 ,
812the boot parameter server, with
813.Sy bootparamd_flags
814as options.
815Used to boot
816.Nx
817and
818.Tn "SunOS 4.x"
819systems.
820.It Sy dhcpd
821.Sq YES
822or
823.Sq NO .
824Runs
825.Xr dhcpd 8 ,
826the Dynamic Host Configuration Protocol (DHCP) daemon,
827for assigning IP addresses to hosts and passing boot information.
828Passes
829.Sy dhcpd_flags .
830.It Sy dhcrelay
831.Sq YES
832or
833.Sq NO .
834Runs
835.Xr dhcrelay 8 .
836Passes
837.Sy dhcrelay_flags .
838.It Sy rbootd
839.Sq YES
840or
841.Sq NO .
842Runs
843.Xr rbootd 8 ,
844the
845.Tn HP
846boot protocol daemon; used for booting
847.Tn HP
848workstations.
849Passes
850.Sy rbootd_flags .
851.It Sy mopd
852.Sq YES
853or
854.Sq NO .
855Runs
856.Xr mopd 8 ,
857the
858.Tn DEC
859.Tn MOP
860protocol daemon; used for booting
861.Tn VAX
862and other
863.Tn DEC
864machines.
865Passes
866.Sy mopd_flags .
867.It Sy ndbootd
868.Sq YES
869or
870.Sq NO .
871Runs
872.Xr ndbootd 8 ,
873the Sun Network Disk (ND) Protocol server.
874Passes
875.Sy ndbootd_flags .
876.It Sy rtadvd
877.Sq YES
878or
879.Sq NO .
880Runs
881.Xr rtadvd 8 ,
882the IPv6 router advertisement daemon, which is used to advertise
883information about the subnet to IPv6 end hosts.
884Passes
885.Sy rtadvd_flags .
886This is only for IPv6 routers, so set
887.Sy ip6mode
888to
889.Dq Li router
890if you use it.
891.El
892.Ss X Window System daemons
893.Bl -tag -width net_interfaces
894.It Sy xfs
895.Sq YES
896or
897.Sq NO .
898Runs the
899.Xr xfs 1
900X11 font server, which supplies local X font files to X terminals.
901.It Sy xdm
902.Sq YES
903or
904.Sq NO .
905Runs the
906.Xr xdm 1
907X display manager.
908These X daemons are available only with the optional X distribution of
909.Nx .
910.El
911.Ss NIS (YP) daemons
912.Bl -tag -width net_interfaces
913.It Sy ypbind
914.Sq YES
915or
916.Sq NO .
917Runs
918.Xr ypbind 8 ,
919which lets
920.Tn NIS
921(YP) clients use information from a
922.Tn NIS
923server.
924Passes
925.Sy ypbind_flags .
926.It Sy ypserv
927.Sq YES
928or
929.Sq NO .
930Runs
931.Xr ypserv 8 ,
932the
933.Tn NIS
934(YP) server for distributing information from certain files in
935.Pa /etc .
936Passes
937.Sy ypserv_flags .
938The
939.Dq Li -d
940flag causes it to use DNS for lookups in
941.Pa /etc/hosts
942that fail.
943.It Sy yppasswdd
944.Sq YES
945or
946.Sq NO .
947Runs
948.Xr yppasswdd 8 ,
949which allows remote
950.Tn NIS
951users to update password on master server.
952Passes
953.Sy yppasswdd_flags .
954.El
955.Ss NFS daemons and parameters
956.Bl -tag -width net_interfaces
957.It Sy mountd
958.Sq YES
959or
960.Sq NO .
961Runs
962.Xr mountd 8
963and passes
964.Sy mountd_flags .
965.It Sy nfs_client
966.Sq YES
967or
968.Sq NO .
969The number of local NFS asynchronous I/O server is now controlled via
970.Xr sysctl 8 .
971.It Sy nfs_server
972.Sq YES
973or
974.Sq NO .
975Sets up a host to be a NFS server by running
976.Xr nfsd 8
977and passing
978.Sy nfsd_flags .
979.It Sy lockd
980.Sq YES
981or
982.Sq NO .
983Runs
984.Xr rpc.lockd 8
985if
986.Sy nfs_server
987and/or
988.Sy nfs_client
989are set to
990.Sq YES .
991Passes
992.Sy lockd_flags .
993.It Sy statd
994.Sq YES
995or
996.Sq NO .
997Runs
998.Xr rpc.statd 8 ,
999a status monitoring daemon used when
1000.Xr rpc.lockd 8
1001is running, if
1002.Sy nfs_server
1003and/or
1004.Sy nfs_client
1005are set to
1006.Sq YES .
1007Passes
1008.Sy statd_flags .
1009.It Sy amd
1010.Sq YES
1011or
1012.Sq NO .
1013Runs
1014.Xr amd 8 ,
1015the automounter daemon, which automatically mounts NFS file systems
1016whenever a file or directory within that file system is accessed.
1017Passes
1018.Sy amd_flags .
1019.It Sy amd_dir
1020A string.
1021The
1022.Xr amd 8
1023mount directory.
1024Used only if
1025.Sy amd
1026is set to
1027.Sq YES .
1028.El
1029.Ss Other daemons
1030.Bl -tag -width net_interfaces
1031.It Sy kdc
1032.Sq YES
1033or
1034.Sq NO .
1035Runs the
1036.Xr kdc 8
1037Kerberos v4 and v5 server.
1038This should be run on Kerberos master and slave servers.
1039.It Sy isdnd
1040.Sq YES
1041or
1042.Sq NO .
1043Runs
1044.Xr isdnd 8 ,
1045the isdn4bsd ISDN connection management daemon.
1046Passes
1047.Sy isdnd_flags .
1048.It Sy isdn_autoupdown
1049.Sq YES
1050or
1051.Sq NO .
1052Set all configured ISDN interfaces to
1053.Dq up .
1054If
1055.Sy isdn_interfaces
1056is not blank, only the listed interfaces will be modified.
1057Used only if
1058.Sy isdnd
1059is set to
1060.Sq YES .
1061.It Sy rwhod
1062.Sq YES
1063or
1064.Sq NO .
1065Runs
1066.Xr rwhod 8
1067to support the
1068.Xr rwho 1
1069and
1070.Xr ruptime 1
1071commands.
1072.El
1073.Ss Hardware daemons
1074.Bl -tag -width net_interfaces
1075.It Sy apmd
1076.Sq YES
1077or
1078.Sq NO .
1079Runs
1080.Xr apmd 8
1081and passes
1082.Sy apmd_flags .
1083.It Sy poffd
1084.Sq YES
1085or
1086.Sq NO .
1087Runs
1088.Xr poffd 8
1089x68k shutdown daemon
1090(only for
1091.Nx Ns /x86k ) .
1092Passes
1093.Sy poffd_flags .
1094.It Sy screenblank
1095.Sq YES
1096or
1097.Sq NO .
1098Runs
1099.Xr screenblank 1
1100and passes
1101.Sy screenblank_flags .
1102.It Sy moused
1103.Sq YES
1104or
1105.Sq NO .
1106Runs
1107.Xr moused 8 ,
1108to pass serial mouse data to the wscons mouse mux.
1109Passes
1110.Sy moused_flags .
1111.It Sy wscons
1112.Sq YES
1113or
1114.Sq NO .
1115Configures the
1116.Xr wscons 4
1117console driver, from the configuration file
1118.Pa /etc/wscons.conf .
1119.El
1120.Sh FILES
1121.Bl -tag -width /etc/defaults/rc.conf -compact
1122.It Pa /etc/rc.conf
1123The file
1124.Nm
1125resides in
1126.Pa /etc .
1127.It Pa /etc/defaults/rc.conf
1128Default settings for
1129.Nm "" ,
1130sourced by
1131.Nm
1132before the end-user configuration section.
1133.It Pa /etc/rc.conf.d/ Ns Ar foo
1134.Ar foo Ns No -specific
1135.Nm
1136overrides.
1137.El
1138.Sh SEE ALSO
1139.Xr ifconfig.if 5 ,
1140.Xr boot 8 ,
1141.Xr rc 8 ,
1142.Xr rc.subr 8 ,
1143.Xr sysctl 8
1144.Sh HISTORY
1145The
1146.Nm
1147file appeared in
1148.Nx 1.3 .
1149