Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

boot(8)

fastboot(8)

init(8)

reboot(8)

savecore(8)

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 multiuser, 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 continues by starting standard daemons, preserves editor files, clearing /tmp, starting system accounting (if applicable), starting the network (where applicable), and if enabled, running savecore(8) to preserve the core image after a crash.

FILES

/etc/rc
/etc/rc.boot
/etc/rc.local

SEE ALSO

boot(8), fastboot(8), init(8), reboot(8), savecore(8)

Sun Release 3.2  —  Last change: 30 June 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026