83 lines · 1.3 KB · Text
RawDownload
.TH INIT 8.SH NAMEinit \- initialize machine upon booting.SH SYNOPSIS.B /$cputype/init[.B -ctm] [.I command ...].SH DESCRIPTION.I Initinitializes the machine: it establishes the name space (see.IR namespace (4)and.I newnsin.IR auth (2)),and environment (see.IR env (3))and starts a shell .RI ( rc (1))on the console.If a.I commandis supplied, that is run instead of the shell.On a CPU server the invoked shell runs.IR cpurc (8)before accepting commands on the console;on a terminal, it runs.IR termrcand then the user's profile.Options.B -t(terminal)and.B -c(CPU)force the behavior to correspond to the specified service class.Otherwise the default is CPU..PP.I Initsets environment variables.B $service(to.L terminalor.LR cpu ),.B $objtype(to the value of.BR $cputype ),.B $user(to the contents of.BR #c/user ),and.B $timezone(to the contents of.BR /adm/timezone/local )..PPWith option.B -m.I initstarts only an interactive shellregardless of the.I commandor service class..PPOn a CPU server,.I initrequires the machine's password to be supplied before starting.I rcon the console..PP.I Initis invoked by.IR boot (8),which sets the arguments as appropriate..SH SOURCE.B /sys/src/cmd/init.c.SH "SEE ALSO".IR rc (1),.IR auth (2),.IR boot (8)