Manual Page Result
0
Command: rc | Section: 8 | Source: UNIX v10 | File: rc.8
RC(8) System Manager's Manual 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; typi-
cally this invokes 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 argu-
ments. This usually causes it to mount filesystems, start daemons,
clear and perform other housekeeping.
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
SEE ALSO
init(8), reboot(8)
RC(8)