INIT(8) INIT(8) NAME init - initialize machine upon booting SYNOPSIS /$cputype/init [ -ctm ] [ command ... ] DESCRIPTION Init initializes the machine: it establishes the name space (see namespace(4) and newns in auth(2)), and environment (see env(3)) and starts a shell (rc(1)) on the console. If a command is supplied, that is run instead of the shell. On a CPU server the invoked shell runs cpurc(8) before accept- ing commands on the console; on a terminal, it runs termrc and then the user's profile. Options -t (terminal) and -c (CPU) force the behavior to correspond to the specified ser- vice class. Otherwise init uses the value of the environ- ment variable $service to decide the service class. Init sets environment variables $service (either to the incoming value or according to -t or -c), $objtype (to the value of $cputype), $user (to the contents of #c/user), and $timezone (to the contents of /adm/timezone/local). With option -m init starts only an interactive shell regard- less of the command or service class. On a CPU server, init requires the machine's password to be supplied before starting rc on the console. Init is invoked by boot(8), which sets the arguments as appropriate. SOURCE /sys/src/cmd/init.c SEE ALSO rc(1), auth(2), boot(8) Page 1 Plan 9 (printed 12/21/24)