3 init \- grandparent of all processes
5 The first program started by MINIX 3 is
7 The actions performed by
9 can be summarized by this pseudo shell program:
15 exec </dev/null >/dev/log 2>&1
17 # Run the system initialization script.
21 echo reboot >>/usr/adm/wtmp
24 # Wait for a process to exit, but don't always block.
27 # Record logout. (Not in this dumb way, of course.)
28 if "pid is in my tables" $pid
30 echo "logout $pid" >/etc/utmp
31 echo "logout $pid" >>/usr/adm/wtmp
34 # Start a new session.
35 while read line type getty init
40 $getty <$tty >$tty 2>&1 &
42 "add pid to tables" $pid
43 echo "login $line $pid" >/etc/utmp
44 echo "login $line $pid" >>/usr/adm/wtmp
56 to initialize the system as described in
59 then enters its main loop where it waits for processes to exit, and starts
60 processes on each enabled terminal line. The file
62 contains a list of terminal devices, their terminal types, the program to
63 execute on them to allow one to login (usually
65 and the program to execute first to initialize the line (usually
67 These fields may be left out to indicate that a line is disabled or that
68 initialization is not necessary. The commands are searched using the path
69 .BR /sbin:/bin:/usr/sbin:/usr/bin .
72 accepts several signals that must be sent to process id 1. (It is the first
73 process, so natually its process id is 1.) The signals are:
76 When receiving a hangup signal,
78 will forget about errors and rescan
80 for processes to execute.
84 each time it feels the need to respawn a process, so the hangup signal is only
85 needed if a line has been shut down, or after a terminate signal. Note
86 that after turning a line off you will have to kill the process running on
89 doesn't do that for you.
92 Normally sent by programs that halt or reboot MINIX 3. Causes
94 to stop spawning new processes.
97 Sent by the keyboard driver when the
99 key combination is typed. Causes
103 command. A second abort signal makes
105 halt the system directly with a system call. The keyboard driver halts the
106 system, without a sync, after the third CTRL-ALT-DEL.
107 .SS "MINIX 3 vs. Minix-vmd"
108 There are a few differences between standard MINIX 3 and Minix-vmd on how
112 file is executed under standard MINIX 3 with input connected to
114 but under Minix-vmd this is still
116 This means that under Minix-vmd processes must be reconnected to
120 program if they need user interaction.
121 Minix-vmd passes the value of the
123 boot variable to /etc/rc. Standard MINIX 3 does not.
127 List of terminals devices.
130 List of currently logged in users.
133 Login/logout history.
141 Kees J. Bot (kjb@cs.vu.nl)