RC(8)

NAME
rc - command scripts for auto-reboot and daemon startup

SYNOPSIS
rc
rc.conf
rc.conf.local
rc.serial
rc.pccard
rc.network
rc.firewall
rc.<arch>
rc.local

DESCRIPTION
Rc is the command script which controls the automatic reboot (calling the other scripts) and rc.local is the script holding commands which are pertinent only to a specific site. Rc.conf contains the global system configuration information referenced by the rc files, while rc.conf.local contains the local system configuration.

When an automatic reboot is in progress, rc is invoked with the argument autoboot. The first portion of rc runs an fsck(8) with option -p to ``preen'' all the disks of minor inconsistencies resulting from the last system shutdown and to check for serious inconsistencies caused by hardware or software failure. If this auto-check and repair succeeds, then the second part of rc is run.

The second part of rc, which is run after an auto-reboot succeeds and also if rc is invoked when a single user shell terminates (see init(8)), starts all the daemons on the system, preserves editor files and clears the scratch directory /tmp.

Rc.serial is used to set any special configurations for serial devices.

Rc.pccard is used to enable PC-cards.

Rc.network is used to start the network. The network is started in three passes. The first pass sets the hostname and domainname, configures the network interfaces, turns on any IP firewall rules, and starts routing. The second pass starts most of the network related daemons. The third pass starts NFS, amd, rwhod, Kerberos and the multicast routing daemon.

Rc.firewall is used to configure rules for the kernel based firewall service. It has several possible options:

open
    will allow anyone in.
client
    will try to protect just this machine.
simple
    will try to protect a whole network.
closed
    totally disables IP services except via lo0 interface.
UNKNOWN
    disables the loading of firewall rules.
filename
    will load the rules in the given filename (full path required).

Rc.<arch> runs architecture specific programs.

Rc.local is executed after the scripts above, but before the rest of the rc file is completed. Presently, all rc.local does is to put version information in /etc/motd.

Following tradition, the startup files reside in /etc.

SEE ALSO
rc.conf(5), init(8), reboot(8), savecore(8)

HISTORY
The rc command appeared in 4.0BSD.