|
|
1.1 ! root 1: .pa 1 ! 2: .he 'INIT (VII)'6/15/72'INIT (VII)' ! 3: .ti 0 ! 4: NAME init -- process control initialization ! 5: .sp ! 6: .ti 0 ! 7: SYNOPSIS /etc/init ! 8: .sp ! 9: .ti 0 ! 10: DESCRIPTION ! 11: .in 8 ! 12: init____ ! 13: is invoked inside UNIX as the last step in the boot procedure. ! 14: Generally its role is to create a process for each ! 15: typewriter on which a user may log in. ! 16: ! 17: First, init____ checks ! 18: to see if the console switches contain 173030. ! 19: (This number is likely to vary between ! 20: systems.) ! 21: If so, the console typewriter tty___ is opened for reading ! 22: and writing and the shell is invoked immediately. ! 23: This feature is used to bring up a test system, or one ! 24: which does not contain DC-11 communications interfaces. ! 25: When the system is brought up in this way, the getty_____ ! 26: and login_____ routines mentioned below and described elsewhere are not needed. ! 27: ! 28: Otherwise, init____ does some housekeeping: the mode of ! 29: each DECtape file is changed to 17 (in case the system ! 30: crashed during a tap___ command); ! 31: directory /usr is mounted ! 32: on the RK0 disk; ! 33: directory /sys is mounted on the RK1 disk. ! 34: Also a data-phone daemon ! 35: is spawned to restart any jobs being sent. ! 36: ! 37: Then init____ forks several times to create a process ! 38: for each typewriter mentioned in an internal table. ! 39: Each of these processes opens the appropriate typewriter ! 40: for reading and writing. These channels thus ! 41: receive file descriptors 0 and 1, the standard input and ! 42: output. ! 43: Opening the typewriter will usually involve a delay, ! 44: since the open____ is not completed until someone ! 45: is dialled in (and carrier established) on the channel. ! 46: Then the process executes the program /etc___/getty_____ ! 47: (q.v.). ! 48: getty_____ will read the user's name and invoke login_____ (q.v.) ! 49: to log in the user and execute the shell. ! 50: ! 51: Ultimately the shell will terminate ! 52: because of an end-of-file either ! 53: typed explicitly or generated as a result of hanging up. ! 54: The main path of init____, which has been waiting ! 55: for such an event, ! 56: wakes up and removes the appropriate entry from the ! 57: file utmp____, which records current users, and ! 58: makes an entry in wtmp____, which maintains a history ! 59: of logins and logouts. ! 60: Then the appropriate typewriter is reopened and getty_____ ! 61: reinvoked. ! 62: .sp ! 63: .in 16 ! 64: .ti 0 ! 65: FILES /dev/tap?, ! 66: /dev/tty, /dev/tty?, /tmp/utmp, /tmp/wtmp ! 67: .sp ! 68: .ti 0 ! 69: SEE ALSO login(I), login(VII), getty(VII), sh(I), dpd(VII) ! 70: .sp ! 71: .ti 0 ! 72: DIAGNOSTICS none possible ! 73: .sp ! 74: .ti 0 ! 75: BUGS none possible
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.