RC(8) RC(8) NAME rc - boot script SYNOPSIS /etc/rc DESCRIPTION Rc is the command script invoked by init(8) to control reboots. During an automatic reboot, rc is invoked with the argument autoboot; typically this invokes `/etc/fsck -p' to repair minor filesystem inconsistencies. If rc exits with a successful status, init proceeds to multi-user mode. When the system enters multi-user mode, either during an auto-reboot or after the single-user shell terminates, rc is invoked without arguments. This usually causes it to mount filesystems, start daemons, clear and perform other house- keeping. If any call to rc returns a nonzero status, init reverts to single-user mode. EXAMPLES A typical rc script: date case $1 in autoboot) echo Autoboot: /etc/fsck -p || {echo "error in reboot"; exit 1} esac /etc/ldpcs /etc/pcs750.bin >/etc/mtab /etc/mount -a /etc/savecore /tmp/dump /dev/ra11 /etc/swapon -a trap "" 1 2 3 /etc/update /etc/cron & rm -f /tmp/* /usr/lib/asd/rmlocks date >> /usr/adm/lastboot /etc/accton /tmp/acct > /tmp/acct /usr/ipc/mgrs/svcmgr /etc/kdiload /usr/ipc/mgrs/dkhup; sleep 10 /usr/ipc/mgrs/dkmgr /usr/netb/setup.go /usr/net/face.go wwv -s RC(8) RC(8) SEE ALSO init(8), reboot(8)