RC(8) — NEWS-OS Programmer’s Manual
NAME
rc − command script for auto-reboot and daemons
SYNOPSIS
/etc/rc
/etc/rc.net
/etc/rc.local
/etc/rc.custom
DESCRIPTION
rc is the command script which controls the automatic reboot and rc.net is the script holding commands which set up the network environment, rc.local is the script holding commands which are pertinent only to a specific site. These scripts uses some shell variables described in rc.custom, which includes basic customizations.
When an automatic reboot is in progress, rc is invoked with the argument autoboot and runs a fsck 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 a 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.
Except when the value of NET is off in the file rc.custom, rc.net is invoked and set up the network environment. rc.local is run at the end of rc and executes commands which are pertinent only to a specific site.
SEE ALSO
init(8), reboot(8), savecore(8)
NEWS-OSRelease 4.2.1R