xref: /plan9/sys/man/8/cpurc (revision e2b0f4371e34e735d64e403b0ed53f73ead18f2c)
CPURC 8
NAME
cpurc, cpurc.local, termrc, termrc.local - boot scripts
SYNOPSIS
cpurc

cpurc.local

termrc

termrc.local

DESCRIPTION
After the kernel boots, it execs /boot (see root (3)), which in turn execs /$cputype/init . Init (8) sets the $service environment variable to cpu or terminal , and then invokes the appropriate rc script to bring the system up.

Based on the values of $sysname and $terminal these scripts start appropriate network processes and administrative daemons and enable swapping. Cpurc sets /env/boottime to the time cpurc was executed and /env/NPROC to a value suitable for parallel compilation in mk (1).

If an executable file /bin/termrc.local exists, termrc will execute it. If an executable file /cfg/$sysname/termrc exists for the machine named $sysname , termrc will execute it next. Automatic initialization of the mouse and VGA on a PC is suppressed, if the user is none . These files should be edited by local installations to reflect the configuration of their systems.

On CPU servers, read .L cpurc for .L termrc in the previous paragraph.

FILES
.TF /cfg/$sysname/termrc

/cfg/$sysname/cpurc machine-specific boot script for cpurc

/cfg/$sysname/termrc machine-specific boot script for termrc

SOURCE
/rc/bin/*rc

/rc/bin/*rc.local

/cfg/$sysname/*rc

"SEE ALSO"
srv (4), namespace (6), init (8), listen (8)