RC(8) — MAINTENANCE COMMANDS
NAME
rc, rc.boot, rc.local − command scripts for auto-reboot and daemons
SYNOPSIS
/etc/rc
/etc/rc.boot
/etc/rc.local
DESCRIPTION
rc and rc.boot are command scripts that are invoked by init(8) to perform file system housekeeping and to start system daemons. rc.local is a script for commands that are pertinent only to a specific site or client machine.
rc.boot sets the machine name, and then, if coming up multi-user, runs fsck(8) with the −p option. This “preens” the disks of minor inconsistencies resulting from the last system shutdown and checks for serious inconsistencies caused by hardware or software failure. If fsck(8) detects a serious disk problem, it returns an error and init(8) brings the system up in single-user mode. When coming up single-user, when init(8) is invoked by fastboot(8), or when it is passed the −b flag from boot(8S), functions performed in the rc.local file, including this disk check, are skipped.
Next, rc runs. If the system came up single-user, rc runs when the single-user shell terminates (see init(8)). It mounts 4.2 filesystems and spawns a shell for /etc/rc.local, which mounts NFS filesystems, and starts local daemons. After rc.local returns, rc starts standard daemons, preserves editor files, clears /tmp, starts system accounting (if applicable), starts the network (where applicable), and if enabled, runs savecore(8) to preserve the core image after a crash.
FILES
/etc/rc
/etc/rc.boot
/etc/rc.local
/etc/net.conf
/var/recover/∗
/var/yp/∗
/tmp
SEE ALSO
automount(8), boot(8S), fastboot(8), init(8), reboot(8), savecore(8), netconfig(8C)
BUGS
The system message file /var/adm/messages is no longer created automatically.
Solbourne Computer, Inc. — 8 September 1988