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