1.\" $NetBSD: rc.conf.5,v 1.7 1997/04/02 02:02:51 cjs Exp $ 2.\" 3.\" Copyright (c) 1996 Matthew R. Green 4.\" Copyright (c) 1997 Curt J. Sampson 5.\" All rights reserved. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. All advertising materials mentioning features or use of this software 16.\" must display the following acknowledgement: 17.\" This product includes software developed by Matthew R. Green for 18.\" the NetBSD Project. 19.\" 4. The name of the author may not be used to endorse or promote products 20.\" derived from this software without specific prior written permission. 21.\" 22.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 23.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 26.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 29.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 30.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" SUCH DAMAGE. 33.\" 34.Dd March 22, 1997 35.Dt RC.CONF 5 36.Os NetBSD 1.3 37.\" turn off hyphenation 38.hym 999 39.Sh NAME 40.Nm rc.conf 41.Nd system startup configuration file 42.Sh DESCRIPTION 43The 44.Nm 45file specifies which services are enabled during system startup by 46the startup script 47.Pa /etc/rc . 48The 49.Nm 50file is a shell script that is sourced by 51.Pa /etc/rc 52if it exists, meaning 53that 54.Nm 55must be valid shell commands. 56.Pp 57Listed below are the 58.Sy daemon_flags 59variables that may be set, the values that each may be set to, 60a brief description of what each daemon does, and a reference to 61each daemon's manual page. Most 62.Sy daemon_flags 63variables have three values: a list of parameters to pass on the 64command line, "DEFAULT" for a reasonable default set of parameters, 65or "NO" if the daemon is not to be run at all. Some programs don't 66take a set of flags, and may only be set to "YES" or "NO". A few are 67always run, and will not take "NO." 68The arguments passed if "DEFAULT" is chosen are listed in 69.Nm 70itself. 71.Pp 72Programs run on boot-up: 73.Bl -tag -width bootparamd_flags 74.It Sy savecore_flags 75Parameters, DEFAULT or NO. 76Saves a copy of the kernel and crash dump when the system comes up 77after a crash. The 78.Ar -z 79parameter will compress the kernel and crash dump. See 80.Xr savecore 8 . 81.It Sy lkm_init 82YES or NO. Loads 83.Xr lkm 4 84modules based on information in 85.Pa /etc/lkm.conf . 86See 87.Xr lkm.conf 5 . 88.It Sy ipfilter 89YES or NO. Runs 90.Xr ipf 8 91to load in packet filter specifications from 92.Pa /etc/ipf.conf 93at network boot time, before any interfaces are configured. See 94.Xr ipf 5 . 95.El 96.Pp 97Interface boot-up configuration: 98.Bl -tag -width bootparamd_flags 99.It Sy net_interfaces 100Parameters, DEFAULT, or NO. 101Lists a set of interfaces to be configured with 102.Xr ifconfig 8 103at boot time. 104If DEFAULT, the interfaces are found by running 105.Xr ifconfig 8 106with the 107.Ar -l 108flag. Usually, the parameters for the subsequent 109.Xr ifconfig 8 110commands are found in files named 111.Pa /etc/ifconfig.* , 112where 113.Dq * 114is the name of each interface (e.g. 115.Pa /etc/ifconfig.le0 ) . 116Alternatively, the parameters may be taken from an 117.Em ifconfig_* 118variable (see below). In either case, the parameters have the interface 119name prepended to them and are then handed to 120.Xr ifconfig 8 . 121.It Sy ifconfig_* 122Parameters only. 123Supplies a set of parameters for configuring the given interface 124.Dq * 125(e.g. 126.Em ifconfig_le0 ) . 127See 128.Em net_interfaces , 129above. 130.El 131.Pp 132Daemons required for other daemons: 133.Bl -tag -width bootparamd_flags 134.It Sy inetd_flags 135Parameters, DEFAULT or NO. 136Starts other internet programs (as listed in 137.Pa /etc/inetd.conf ) 138as necessary. The 139.Ar -l 140option turns on libwrap connection logging. See 141.Xr inetd 8 . 142.It Sy portmap 143YES or NO. The 144.Xr portmap 8 145daemon is required for any Sun RPC based services. These include NFS, YP, 146.Xr bootparamd 8 , 147.Xr rstatd 8 , 148.Xr rusersd 8 , 149and 150.Xr rwalld 8 . 151.El 152Commonly used daemons: 153.Bl -tag -width bootparamd_flags 154.It Sy update_flags 155Parameters or DEFAULT. The 156.Xr update 8 157daemon flushes cached disk pages that are dirty to disk at regular intervals. 158.It Sy syslog_flags 159Parameters, DEFAULT or NO. 160Syslog daemon; logs messages to logfiles. See 161.Xr syslogd 8 . 162.It Sy timed_flags 163Parameters, DEFAULT or NO. 164Local area network time synchronisation daemon. The 165.Ar -M 166parameter allows this host to be a master, as well as a slave. See 167.Xr timed 8 . 168.It Sy xntpd_flags 169Parameters, DEFAULT or NO. 170Local and wide area network time synchronisation daemon. If this is used, 171.Sy timed_flags 172should be set to 173.Ar -M -F localhost 174on one xntp-using host on the network, and to "NO" 175on any other xntp-using host. 176.Xr xntpd 8 177is not included with 178.Nx . 179.It Sy sendmail_flags 180Parameters, DEFAULT or NO. 181Sendmail SMTP mail transport agent. See 182.Xr sendmail 8 . 183.It Sy named_flags 184Parameters, DEFAULT or NO. 185BIND domain name resolver and server. See 186.Xr named 8 . 187.It Sy lpd_flags 188Parameters, DEFAULT or NO. 189Line printer daemon; allows other hosts to print to the local host's printer. 190The 191.Ar -l 192option turns on extra logging. See 193.Xr lpd 8 . 194.El 195Routing daemons: 196.Bl -tag -width bootparamd_flags 197.It Sy routed_flags 198Parameters, DEFAULT or NO. 199RIP routing protocol daemon. This should be NO if 200.Sy gated_flags 201is anything but NO. See 202.Xr routed 8 . 203.It Sy gated_flags 204Parameters, DEFAULT or NO. 205Routing daemon for many IP routing protocols. 206This should be NO if 207.Sy routed_flags 208is anything but NO. 209.Xr gated 8 210is not included with 211.Nx . 212.It Sy mrouted_flags 213Parameters, DEFAULT or NO. 214DVMRP multicast routing protocol daemon. See 215.Xr mrouted 8 . 216.El 217Daemons used to boot other hosts over a network: 218.Bl -tag -width bootparamd_flags 219.It Sy rarpd_flags 220Parameters, DEFAULT or NO. 221Reverse ARP daemon; used to boot NetBSD and Sun workstations. See 222.Xr rarpd 8 . 223.It Sy bootparamd_flags 224Parameters, DEFAULT or NO. 225Boot parameter server; used for booting NetBSD and SunOS 4.x systems. See 226.Xr bootparamd 8 . 227.It Sy dhcpd_flags 228Parameters, DEFAULT or NO. 229Dynamic Host Configuration Protocol daemon, for assigning IP addresses to 230hosts and passing boot information. See 231.Xr dhcpd 8 . 232.It Sy rbootd_flags 233Parameters, DEFAULT or NO. 234HP boot protocol daemon; used for booting HP workstations. See 235.Xr rbootd 8 . 236.It Sy mopd_flags 237Parameters, DEFAULT or NO. 238DEC MOP protocol daemon; used for booting VAX and other DEC machines. See 239.Xr mopd 8 . 240.El 241YP (NIS) daemons: 242.Bl -tag -width bootparamd_flags 243.It Sy ypbind_flags 244Parameters, DEFAULT or NO. 245Run on YP (NIS) clients to use information from a YP server. See 246.Xr ypbind 8 . 247.It Sy ypserv_flags 248Parameters, DEFAULT or NO. 249YP (NIS) server for distributing information from certain files in 250.Pa /etc . 251See 252.Xr ypserv 8 . 253.It Sy yppasswdd_flags 254Parameters, DEFAULT or NO. 255Allows remote YP users to update password on master server. See 256.Xr yppasswdd 8 . 257.El 258Network file system daemons: 259.Bl -tag -width bootparamd_flags 260.It Sy nfs_client 261YES or NO. Runs 262.Xr nfsiod 8 263to increase performance of an NFS client host. 264.It Sy nfsiod_flags 265Parameters or DEFAULT. Flags passed to 266.Xr nfsiod 8 267if 268.Sy nfs_client 269is set to YES. 270.It Sy nfs_server 271YES or NO. Sets up a host to be a NFS server by running 272.Xr mountd 8 273and 274.Xr nfsd 8 . 275.It Sy mountd_flags 276Parameters or DEFAULT. These are passed to 277.Xr mountd 8 278if 279.Sy nfs_server 280is set to YES. 281.It Sy nfsd_flags 282Parameters or DEFAULT. These are passed to 283.Xr nfsd 8 284if 285.Sy nfs_server 286is set to YES. 287.It Sy lockd_flags 288Parameters, DEFAULT or NO. Provides locking for NFS. Ignored if 289.Sy nfs_server 290and 291.Sy nfs_client 292are both set to NO. See 293.Xr rpc.lockd 8 . 294.It Sy statd_flags 295Parameters, DEFAULT or NO. Ignored if 296.Sy nfs_server 297and 298.Sy nfs_client 299are both set to NO. Status monitoring daemon used when 300.Xr rpc.lockd 8 301is running. See 302.Xr rpc.statd 8 . 303.It Sy amd_flags 304Parameters, DEFAULT or NO. 305The automounter daemon, 306.Xr amd 8 , 307automatically mounts NFS file systems whenever a file or directory within 308that filesystem is accessed. 309.It Sy amd_dir 310The 311.Xr amd 8 312mount directory. Used only if 313.Sy amd_flags 314is not set to NO. 315.It Sy amd_master 316The 317.Xr amd 8 318automounter master map. 319Used only if 320.Sy amd_flags 321is not set to NO. 322.El 323Other daemons: 324.Bl -tag -width bootparamd_flags 325.It Sy rwhod 326YES or NO. Daemon to support 327.Xr rwho 8 328command. See 329.Xr rwhod 8 . 330.It Sy kerberos 331YES or NO. Runs the kerberos server 332.Xr kerberos 8 333and the kerberos admininstration server, 334.Xr kadmind 8 . 335This should only be run on the kerberos master server. 336The kerberos server is only available with the domestic distribution of 337.Nx . 338.El 339.Sh FILES 340.Pa /etc/rc.conf 341.Sh SEE ALSO 342.Xr boot 8 343.Sh BUGS 344The 345.Sy kerberos_server 346variable is actually used by the default 347.Pa /etc/rc.local 348script, not the 349.Pa /etc/rc 350script. 351.Sh HISTORY 352The 353.Nm 354file appeared in 355.Nx 1.3 . 356