|
|
1.1 root 1:
2:
3: init System Maintenance init
4:
5:
6:
7:
8: System initialization
9:
10: /etc/init
11:
12: The COHERENT boot procedure executes init as process 1 to perform
13: initialization. init opens the console terminal /dev/console and
14: invokes the shell script /etc/brc if it exists. If it does not,
15: init invokes a shell sh on it with HOME set to /etc. The shell
16: executes /etc/profile and /etc/.profile if present. The system
17: then runs in single-user mode and accepts commands from the con-
18: sole.
19:
20: When the console terminates the shell, normally by typing <ctrl-
21: D>, init brings up the system in multiuser mode. It executes the
22: shell command file /etc/rc, which performs standard bookkeeping
23: and maintenance chores. Typically it mounts standard file sys-
24: tems, removes temporary files, and invokes cron and update. If
25: desired, it may load device drivers, enable swapping with swap,
26: and enable process accounting with accton.
27:
28: Next, init opens terminals as specified in the file /etc/ttys.
29: It invokes getty to read a user name and perform a login on each
30: terminal.
31:
32: When a user shell terminates, init updates the system accounting
33: information in /etc/utmp and /usr/adm/wtmp. Then it reopens the
34: appropriate terminal and invokes getty, as above.
35:
36: init rescans the file /etc/ttys for terminal changes if it
37: receives the signal SIGQUIT. The command kkiillll qquuiitt 11 sends
38: SIGQUIT to the init process. init then invokes getty as neces-
39: sary.
40:
41: init returns the system to single user mode if it receives the
42: signal SIGHUP. The command kkiillll -11 11 sends SIGHUP to the init
43: process.
44:
45: ***** Files *****
46:
47: /ddeevv/ccoonnssoollee -- Console terminal
48: /ddeevv/ttttyy?? -- Terminal devices
49: /eettcc/bbrrcc -- Boot command file
50: /eettcc/rrcc -- initialization command file
51: /eettcc/ttttyyss -- Active terminals
52: /eettcc/uuttmmpp -- Logged in users
53: /uussrr/aaddmm/wwttmmpp -- Login accounting data
54: /uussrr/ssppooooll/uuuuccpp/LLCCKK..* -- Terminal locks
55:
56: ***** See Also *****
57:
58: getty, kill, login, sh, system maintenance, ttys
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.