1997-05-12 09:21:51 +04:00
|
|
|
.\" $NetBSD: rc.conf.5,v 1.8 1997/05/12 05:21:51 mikel Exp $
|
1997-01-05 14:50:12 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1996 Matthew R. Green
|
1997-03-23 10:57:22 +03:00
|
|
|
.\" Copyright (c) 1997 Curt J. Sampson
|
1997-05-12 09:21:51 +04:00
|
|
|
.\" Copyright (c) 1997 Michael W. Long
|
1997-01-05 14:50:12 +03:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by Matthew R. Green for
|
|
|
|
.\" the NetBSD Project.
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote products
|
|
|
|
.\" derived from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
|
|
|
.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
|
|
.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
|
|
.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
|
|
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1997-03-23 10:57:22 +03:00
|
|
|
.Dd March 22, 1997
|
1997-01-05 14:50:12 +03:00
|
|
|
.Dt RC.CONF 5
|
|
|
|
.Os NetBSD 1.3
|
1997-03-23 10:57:22 +03:00
|
|
|
.\" turn off hyphenation
|
|
|
|
.hym 999
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm rc.conf
|
|
|
|
.Nd system startup configuration file
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file specifies which services are enabled during system startup by
|
|
|
|
the startup script
|
|
|
|
.Pa /etc/rc .
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file is a shell script that is sourced by
|
|
|
|
.Pa /etc/rc
|
|
|
|
if it exists, meaning
|
|
|
|
that
|
|
|
|
.Nm
|
1997-05-12 09:21:51 +04:00
|
|
|
must contain valid shell commands.
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pp
|
1997-03-17 04:22:49 +03:00
|
|
|
Listed below are the
|
1997-05-12 09:21:51 +04:00
|
|
|
.Nm
|
1997-03-17 04:22:49 +03:00
|
|
|
variables that may be set, the values that each may be set to,
|
1997-05-12 09:21:51 +04:00
|
|
|
a brief description of what each variable does, and a reference to
|
|
|
|
relevant manual pages. Most
|
1997-03-17 04:22:49 +03:00
|
|
|
variables have three values: a list of parameters to pass on the
|
|
|
|
command line, "DEFAULT" for a reasonable default set of parameters,
|
|
|
|
or "NO" if the daemon is not to be run at all. Some programs don't
|
1997-03-23 10:57:22 +03:00
|
|
|
take a set of flags, and may only be set to "YES" or "NO". A few are
|
|
|
|
always run, and will not take "NO."
|
1997-03-17 04:22:49 +03:00
|
|
|
The arguments passed if "DEFAULT" is chosen are listed in
|
|
|
|
.Nm
|
|
|
|
itself.
|
1997-01-05 14:50:12 +03:00
|
|
|
.Pp
|
1997-05-12 09:21:51 +04:00
|
|
|
Actions to perform on boot-up:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
|
|
|
.It Sy update_motd
|
|
|
|
YES or NO. Updates the
|
|
|
|
.Nx
|
|
|
|
version string in the
|
|
|
|
.Pa /etc/motd
|
|
|
|
file to reflect the version of the running kernel. See
|
|
|
|
.Xr motd 5 .
|
|
|
|
.El
|
|
|
|
.Pp
|
1997-04-02 06:02:51 +04:00
|
|
|
Programs run on boot-up:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
|
|
|
.It Sy savecore_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Saves a copy of the kernel and crash dump when the system comes up
|
|
|
|
after a crash. The
|
|
|
|
.Ar -z
|
|
|
|
parameter will compress the kernel and crash dump. See
|
|
|
|
.Xr savecore 8 .
|
|
|
|
.It Sy lkm_init
|
|
|
|
YES or NO. Loads
|
|
|
|
.Xr lkm 4
|
|
|
|
modules based on information in
|
|
|
|
.Pa /etc/lkm.conf .
|
|
|
|
See
|
|
|
|
.Xr lkm.conf 5 .
|
|
|
|
.It Sy ipfilter
|
|
|
|
YES or NO. Runs
|
|
|
|
.Xr ipf 8
|
|
|
|
to load in packet filter specifications from
|
|
|
|
.Pa /etc/ipf.conf
|
|
|
|
at network boot time, before any interfaces are configured. See
|
|
|
|
.Xr ipf 5 .
|
1997-05-12 09:21:51 +04:00
|
|
|
.It Sy ntpdate_hosts
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
List of time servers for
|
|
|
|
.Xr ntpdate 8 .
|
|
|
|
If DEFAULT, the list of servers is loaded from
|
|
|
|
.Pa /etc/ntp.conf .
|
1997-04-02 06:02:51 +04:00
|
|
|
.El
|
|
|
|
.Pp
|
1997-04-02 00:17:43 +04:00
|
|
|
Interface boot-up configuration:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
|
|
|
.It Sy net_interfaces
|
|
|
|
Parameters, DEFAULT, or NO.
|
|
|
|
Lists a set of interfaces to be configured with
|
|
|
|
.Xr ifconfig 8
|
|
|
|
at boot time.
|
|
|
|
If DEFAULT, the interfaces are found by running
|
|
|
|
.Xr ifconfig 8
|
|
|
|
with the
|
1997-05-12 09:21:51 +04:00
|
|
|
.Fl l
|
1997-04-02 00:17:43 +04:00
|
|
|
flag. Usually, the parameters for the subsequent
|
|
|
|
.Xr ifconfig 8
|
|
|
|
commands are found in files named
|
|
|
|
.Pa /etc/ifconfig.* ,
|
|
|
|
where
|
|
|
|
.Dq *
|
|
|
|
is the name of each interface (e.g.
|
1997-04-02 06:02:51 +04:00
|
|
|
.Pa /etc/ifconfig.le0 ) .
|
|
|
|
Alternatively, the parameters may be taken from an
|
1997-05-12 09:21:51 +04:00
|
|
|
.Sy ifconfig_*
|
1997-04-02 06:02:51 +04:00
|
|
|
variable (see below). In either case, the parameters have the interface
|
|
|
|
name prepended to them and are then handed to
|
|
|
|
.Xr ifconfig 8 .
|
1997-04-02 00:17:43 +04:00
|
|
|
.It Sy ifconfig_*
|
|
|
|
Parameters only.
|
|
|
|
Supplies a set of parameters for configuring the given interface
|
|
|
|
.Dq *
|
|
|
|
(e.g.
|
1997-05-12 09:21:51 +04:00
|
|
|
.Sy ifconfig_le0 ) .
|
1997-04-02 00:17:43 +04:00
|
|
|
See
|
1997-05-12 09:21:51 +04:00
|
|
|
.Sy net_interfaces
|
1997-04-02 00:17:43 +04:00
|
|
|
above.
|
|
|
|
.El
|
1997-04-02 06:02:51 +04:00
|
|
|
.Pp
|
1997-03-23 10:57:22 +03:00
|
|
|
Daemons required for other daemons:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
|
|
|
.It Sy inetd_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Starts other internet programs (as listed in
|
|
|
|
.Pa /etc/inetd.conf )
|
|
|
|
as necessary. The
|
|
|
|
.Ar -l
|
|
|
|
option turns on libwrap connection logging. See
|
|
|
|
.Xr inetd 8 .
|
|
|
|
.It Sy portmap
|
|
|
|
YES or NO. The
|
|
|
|
.Xr portmap 8
|
1997-05-12 09:21:51 +04:00
|
|
|
daemon is required for any
|
|
|
|
.Xr rpc 3
|
|
|
|
services. These include NFS, YP,
|
1997-03-23 10:57:22 +03:00
|
|
|
.Xr bootparamd 8 ,
|
|
|
|
.Xr rstatd 8 ,
|
|
|
|
.Xr rusersd 8 ,
|
|
|
|
and
|
|
|
|
.Xr rwalld 8 .
|
|
|
|
.El
|
1997-05-12 09:21:51 +04:00
|
|
|
.Pp
|
1997-03-23 10:57:22 +03:00
|
|
|
Commonly used daemons:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
|
|
|
.It Sy update_flags
|
|
|
|
Parameters or DEFAULT. The
|
|
|
|
.Xr update 8
|
|
|
|
daemon flushes cached disk pages that are dirty to disk at regular intervals.
|
1997-05-12 09:21:51 +04:00
|
|
|
.It Sy syslogd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Syslog daemon; logs messages to logfiles. See
|
1997-01-05 14:50:12 +03:00
|
|
|
.Xr syslogd 8 .
|
1997-03-23 10:57:22 +03:00
|
|
|
.It Sy timed_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Local area network time synchronisation daemon. The
|
|
|
|
.Ar -M
|
|
|
|
parameter allows this host to be a master, as well as a slave. See
|
|
|
|
.Xr timed 8 .
|
|
|
|
.It Sy xntpd_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Local and wide area network time synchronisation daemon. If this is used,
|
|
|
|
.Sy timed_flags
|
|
|
|
should be set to
|
1997-05-12 09:21:51 +04:00
|
|
|
.Dq Ar -M -F localhost
|
1997-03-23 10:57:22 +03:00
|
|
|
on one xntp-using host on the network, and to "NO"
|
|
|
|
on any other xntp-using host.
|
|
|
|
.It Sy sendmail_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Sendmail SMTP mail transport agent. See
|
|
|
|
.Xr sendmail 8 .
|
|
|
|
.It Sy named_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
BIND domain name resolver and server. See
|
|
|
|
.Xr named 8 .
|
|
|
|
.It Sy lpd_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Line printer daemon; allows other hosts to print to the local host's printer.
|
|
|
|
The
|
|
|
|
.Ar -l
|
|
|
|
option turns on extra logging. See
|
|
|
|
.Xr lpd 8 .
|
|
|
|
.El
|
1997-05-12 09:21:51 +04:00
|
|
|
.Pp
|
1997-03-23 10:57:22 +03:00
|
|
|
Routing daemons:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy routed_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
RIP routing protocol daemon. This should be NO if
|
|
|
|
.Sy gated_flags
|
|
|
|
is anything but NO. See
|
|
|
|
.Xr routed 8 .
|
|
|
|
.It Sy gated_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Routing daemon for many IP routing protocols.
|
|
|
|
This should be NO if
|
|
|
|
.Sy routed_flags
|
|
|
|
is anything but NO.
|
|
|
|
.Xr gated 8
|
|
|
|
is not included with
|
|
|
|
.Nx .
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy mrouted_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
DVMRP multicast routing protocol daemon. See
|
|
|
|
.Xr mrouted 8 .
|
|
|
|
.El
|
1997-05-12 09:21:51 +04:00
|
|
|
.Pp
|
1997-03-23 10:57:22 +03:00
|
|
|
Daemons used to boot other hosts over a network:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy rarpd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
1997-05-12 09:21:51 +04:00
|
|
|
Reverse ARP daemon; used to boot
|
|
|
|
.Nx
|
|
|
|
and Sun workstations. See
|
1997-03-23 10:57:22 +03:00
|
|
|
.Xr rarpd 8 .
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy bootparamd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
1997-05-12 09:21:51 +04:00
|
|
|
Boot parameter server; used for booting
|
|
|
|
.Nx
|
|
|
|
and SunOS 4.x systems. See
|
1997-03-23 10:57:22 +03:00
|
|
|
.Xr bootparamd 8 .
|
|
|
|
.It Sy dhcpd_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Dynamic Host Configuration Protocol daemon, for assigning IP addresses to
|
|
|
|
hosts and passing boot information. See
|
|
|
|
.Xr dhcpd 8 .
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy rbootd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
HP boot protocol daemon; used for booting HP workstations. See
|
|
|
|
.Xr rbootd 8 .
|
1997-03-17 04:22:49 +03:00
|
|
|
.It Sy mopd_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
1997-03-23 10:57:22 +03:00
|
|
|
DEC MOP protocol daemon; used for booting VAX and other DEC machines. See
|
1997-03-17 04:22:49 +03:00
|
|
|
.Xr mopd 8 .
|
1997-03-23 10:57:22 +03:00
|
|
|
.El
|
1997-05-12 09:21:51 +04:00
|
|
|
.Pp
|
1997-03-23 10:57:22 +03:00
|
|
|
YP (NIS) daemons:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
|
|
|
.It Sy ypbind_flags
|
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Run on YP (NIS) clients to use information from a YP server. See
|
|
|
|
.Xr ypbind 8 .
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy ypserv_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
YP (NIS) server for distributing information from certain files in
|
|
|
|
.Pa /etc .
|
|
|
|
See
|
|
|
|
.Xr ypserv 8 .
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy yppasswdd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
Allows remote YP users to update password on master server. See
|
|
|
|
.Xr yppasswdd 8 .
|
1997-01-05 14:50:12 +03:00
|
|
|
.El
|
1997-05-12 09:21:51 +04:00
|
|
|
.Pp
|
1997-03-23 10:57:22 +03:00
|
|
|
Network file system daemons:
|
1997-01-05 14:50:12 +03:00
|
|
|
.Bl -tag -width bootparamd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
.It Sy nfs_client
|
|
|
|
YES or NO. Runs
|
|
|
|
.Xr nfsiod 8
|
|
|
|
to increase performance of an NFS client host.
|
|
|
|
.It Sy nfsiod_flags
|
|
|
|
Parameters or DEFAULT. Flags passed to
|
|
|
|
.Xr nfsiod 8
|
|
|
|
if
|
|
|
|
.Sy nfs_client
|
|
|
|
is set to YES.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy nfs_server
|
1997-03-23 10:57:22 +03:00
|
|
|
YES or NO. Sets up a host to be a NFS server by running
|
1997-01-05 14:50:12 +03:00
|
|
|
.Xr mountd 8
|
1997-03-23 10:57:22 +03:00
|
|
|
and
|
|
|
|
.Xr nfsd 8 .
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy mountd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters or DEFAULT. These are passed to
|
|
|
|
.Xr mountd 8
|
1997-01-05 14:50:12 +03:00
|
|
|
if
|
|
|
|
.Sy nfs_server
|
1997-03-23 10:57:22 +03:00
|
|
|
is set to YES.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy nfsd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters or DEFAULT. These are passed to
|
|
|
|
.Xr nfsd 8
|
1997-01-05 14:50:12 +03:00
|
|
|
if
|
|
|
|
.Sy nfs_server
|
1997-03-23 10:57:22 +03:00
|
|
|
is set to YES.
|
|
|
|
.It Sy lockd_flags
|
|
|
|
Parameters, DEFAULT or NO. Provides locking for NFS. Ignored if
|
1997-03-10 10:06:17 +03:00
|
|
|
.Sy nfs_server
|
1997-03-23 10:57:22 +03:00
|
|
|
and
|
1997-03-10 10:06:17 +03:00
|
|
|
.Sy nfs_client
|
1997-03-23 10:57:22 +03:00
|
|
|
are both set to NO. See
|
|
|
|
.Xr rpc.lockd 8 .
|
|
|
|
.It Sy statd_flags
|
|
|
|
Parameters, DEFAULT or NO. Ignored if
|
1997-03-10 10:06:17 +03:00
|
|
|
.Sy nfs_server
|
1997-03-23 10:57:22 +03:00
|
|
|
and
|
1997-03-10 10:06:17 +03:00
|
|
|
.Sy nfs_client
|
1997-03-23 10:57:22 +03:00
|
|
|
are both set to NO. Status monitoring daemon used when
|
|
|
|
.Xr rpc.lockd 8
|
|
|
|
is running. See
|
|
|
|
.Xr rpc.statd 8 .
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy amd_flags
|
1997-03-23 10:57:22 +03:00
|
|
|
Parameters, DEFAULT or NO.
|
|
|
|
The automounter daemon,
|
|
|
|
.Xr amd 8 ,
|
|
|
|
automatically mounts NFS file systems whenever a file or directory within
|
|
|
|
that filesystem is accessed.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy amd_dir
|
|
|
|
The
|
|
|
|
.Xr amd 8
|
1997-03-23 10:57:22 +03:00
|
|
|
mount directory. Used only if
|
|
|
|
.Sy amd_flags
|
|
|
|
is not set to NO.
|
1997-01-05 14:50:12 +03:00
|
|
|
.It Sy amd_master
|
|
|
|
The
|
|
|
|
.Xr amd 8
|
|
|
|
automounter master map.
|
1997-03-23 10:57:22 +03:00
|
|
|
Used only if
|
|
|
|
.Sy amd_flags
|
|
|
|
is not set to NO.
|
1997-01-05 14:50:12 +03:00
|
|
|
.El
|
1997-05-12 09:21:51 +04:00
|
|
|
.Pp
|
1997-03-23 10:57:22 +03:00
|
|
|
Other daemons:
|
|
|
|
.Bl -tag -width bootparamd_flags
|
|
|
|
.It Sy rwhod
|
|
|
|
YES or NO. Daemon to support
|
|
|
|
.Xr rwho 8
|
|
|
|
command. See
|
|
|
|
.Xr rwhod 8 .
|
1997-05-12 09:21:51 +04:00
|
|
|
.It Sy kerberos_server
|
1997-03-23 10:57:22 +03:00
|
|
|
YES or NO. Runs the kerberos server
|
|
|
|
.Xr kerberos 8
|
|
|
|
and the kerberos admininstration server,
|
|
|
|
.Xr kadmind 8 .
|
|
|
|
This should only be run on the kerberos master server.
|
|
|
|
The kerberos server is only available with the domestic distribution of
|
|
|
|
.Nx .
|
1997-01-05 14:50:12 +03:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Pa /etc/rc.conf
|
|
|
|
.Sh SEE ALSO
|
1997-05-12 09:21:51 +04:00
|
|
|
.Xr boot 8 ,
|
|
|
|
.Xr rc 8
|
1997-01-05 14:50:12 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
file appeared in
|
|
|
|
.Nx 1.3 .
|