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