1 .\" Copyright 1992, 1993 Rickard E. Faith (faith@cs.unc.edu)
2 .\" May be distributed under the GNU General Public License
3 .\" " for emacs's hilit19 mode :-)
5 .\" Japanese Version Copyright (c) 2001 Yuichi SATO
6 .\" all rights reserved.
7 .\" Translated Mon Feb 26 22:49:20 JST 2001
8 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
9 .\" Updated Tue Jun 5 JST 2001 by Kentaro Shirakata <argrath@ub32.org>
11 .TH SIMPLEINIT 8 "25 February 2001" "Linux 0.99" "Linux Programmer's Manual"
14 .\"O simpleinit \- process control initialization
15 simpleinit \- ¥×¥í¥»¥¹À©¸æ¤Î½é´ü²½¤ò¹Ô¤¦
18 .B "init [ single ] [ script ]"
22 .\"O is invoked as the last step in the Linux boot sequence. If the
24 .\"O option is used, or if the file
25 .\"O .I /etc/singleboot
26 .\"O exists, then single user mode will be entered, by starting
29 ¤Ï Linux ¥Ö¡¼¥È¥·¡¼¥±¥ó¥¹¤ÎºÇ½ª¥¹¥Æ¥Ã¥×¤È¤·¤Æµ¯Æ°¤µ¤ì¤ë¡£
31 ¥ª¥×¥·¥ç¥ó¤¬»È¤ï¤ì¤¿¾ì¹ç¡¢¤Þ¤¿¤Ï¥Õ¥¡¥¤¥ë
35 ¤òµ¯Æ°¤¹¤ë¤³¤È¤Ç¥·¥ó¥°¥ë¥æ¡¼¥¶¡¼¥â¡¼¥É¤ËÆþ¤ë¡£
37 .\"O .I /etc/securesingle
38 .\"O exists, then the root password will be required to start single user mode.
39 .\"O If the root password does not exist, or if
41 .\"O does not exist, the checking of the password will be skipped.
44 ¤¬¤¢¤ë¾ì¹ç¡¢¥·¥ó¥°¥ë¥æ¡¼¥¶¡¼¥â¡¼¥É¤ò³«»Ï¤¹¤ë¤¿¤á¤Ë
45 root ¥Ñ¥¹¥ï¡¼¥É¤¬É¬ÍפȤµ¤ì¤ë¡£
46 root ¥Ñ¥¹¥ï¡¼¥É¤¬¤Ê¤¤¾ì¹ç¡¢¤Þ¤¿¤Ï
48 ¤¬¤Ê¤¤¾ì¹ç¡¢¥Ñ¥¹¥ï¡¼¥É¤Î¥Á¥§¥Ã¥¯¤Ï¾Ê¤«¤ì¤ë¡£
52 .\"O exists, then the contents of that file will be read, and used to set the TZ
53 .\"O environment variable for each process started by
55 .\"O This "feature" is only available if it's configured at compile-time. It's
56 .\"O not normally needed.
59 ¤¬¤¢¤ë¾ì¹ç¡¢¤½¤ÎÆâÍƤ¬Æɤ߹þ¤Þ¤ì¡¢
61 ¤Ë¤è¤Ã¤Æ³«»Ï¤µ¤ì¤ë³Æ¥×¥í¥»¥¹¤Î´Ä¶ÊÑ¿ô
62 TZ ¤òÀßÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
63 ¡Ö¤³¤Îµ¡Ç½¡×¤Ï¥³¥ó¥Ñ¥¤¥ë»þ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß»ÈÍѲÄǽ¤Ç¤¢¤ë¡£
64 Ä̾ï¤ÏɬÍפȤµ¤ì¤Ê¤¤¡£
66 .\"O After single user mode is terminated, the
68 .\"O file is executed, and the information in
70 .\"O will be used to start processes. Alternatively, the \fI/etc/inittab\fP
71 .\"O file may be configured to run a different boot script. See below for
73 ¥·¥ó¥°¥ë¥æ¡¼¥¶¡¼¥â¡¼¥É¤¬½ªÎ»¤·¤¿¸å¡¢
75 ¥Õ¥¡¥¤¥ë¤¬¼Â¹Ô¤µ¤ì¤ë¡£
77 ¤Ë¤¢¤ë¾ðÊó¤Ï¡¢¥×¥í¥»¥¹¤ò³«»Ï¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
78 Ê̤ÎÊýË¡¤È¤·¤Æ¡¢Â¾¤Î¥Ö¡¼¥È¥¹¥¯¥ê¥×¥È¤ò¼Â¹Ô¤¹¤ë¤è¤¦¤Ë
79 \fI/etc/inittab\fP ¥Õ¥¡¥¤¥ë¤òÀßÄꤷ¤Æ¤â¤è¤¤¡£
80 ¾ÜºÙ¤Ï²¼µ¤ò»²¾È¤¹¤ë¤³¤È¡£
82 .\"O .SH "THE INITTAB FILE"
84 .\"O Because of the number of init programs which are appearing in the Linux
85 .\"O community, the documentation for the
87 .\"O file, which is usually found with the
89 .\"O man page, is presented here:
90 Linux ¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤Ï¤¤¤¯¤Ä¤â¤Î init ¥×¥í¥°¥é¥à¤¬½Ð¸½¤·¤Æ¤¤¤ë¤Î¤Ç¡¢
93 ¤Î man ¥Ú¡¼¥¸¤Ë½ñ¤«¤ì¤Æ¤¤¤ë
95 ¥Õ¥¡¥¤¥ë¤Ë¤Ä¤¤¤Æ¤Î¥É¥¥å¥á¥ó¥È¤ò¤³¤³¤ËºÜ¤»¤ë:
98 ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
101 .\"O .B bootprog=file
103 .\"O .B fileprefix=string
105 .\"O .B PATH=search path
107 .\"O .B INIT_PATH=search path
109 .\"O .B "ttyline:termcap-entry:getty-command"
111 .\"O .B finalprog=path
118 .B INIT_PATH=¸¡º÷¥Ñ¥¹
120 .B "tty ¥é¥¤¥ó:termcap ¥¨¥ó¥È¥ê:getty ¥³¥Þ¥ó¥É"
125 .\"O An example is as follows:
131 fileprefix = /sbin/init.d/
132 PATH = /usr/sbin:/usr/bin:/sbin:/bin
133 INIT_PATH = /sbin/init.d
135 tty1:linux:/sbin/getty 9600 tty1
136 tty2:linux:/sbin/getty 9600 tty2
137 tty3:linux:/sbin/getty 9600 tty3
138 tty4:linux:/sbin/getty 9600 tty4
139 # tty5:linux:/sbin/getty 9600 tty5
140 # ttyS1:dumb:/sbin/getty 9600 ttyS1
141 # ttyS2:dumb:/sbin/getty -m -t60 2400 ttyS2
143 finalprog = /sbin/rc.xdm
147 .\"O Lines beginning with the
149 .\"O character are treated as comments. Please see documentation for the
151 .\"O command that you are using, since there are several of these in the Linux
152 .\"O community at this time.
154 ʸ»ú¤Ç»Ï¤Þ¤ë¹Ô¤Ï¥³¥á¥ó¥È¤È¤·¤Æ°·¤ï¤ì¤ë¡£
155 ¸½ºß¤Î¤È¤³¤í Linux ¥³¥ß¥å¥Ë¥Æ¥£¤Ç¤Ï
157 ¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¤¬¤¤¤¯¤Ä¤«¤¢¤ë¤¿¤á¡¢
160 ¥³¥Þ¥ó¥É¤Î¥É¥¥å¥á¥ó¥È¤ò»²¾È¤¹¤ë¤³¤È¡£
162 .\"O The \fBbootprog\fP value is appended to the \fBfileprefix\fP value,
163 .\"O and the result specifies the boot programme (script) to run. If
164 .\"O unspecified, the default is \fI/etc/rc\fP. If the boot programme is a
165 .\"O directory, then all scripts in that directory tree are executed, in
166 .\"O parallel. See the \fBneed\fP(8) programme for details on how to
167 .\"O elegantly control order of execution and manage dependencies.
168 \fBbootprog\fP ¤ÎÃͤϡ¢\fBfileprefix\fP ¤ÎÃͤËÄɲ䵤ì¤ë¡£
169 ¤½¤Î·ë²Ì¤Ï¡¢¼Â¹Ô¤¹¤ë¥Ö¡¼¥È¥×¥í¥°¥é¥à (¥¹¥¯¥ê¥×¥È) ¤ò»ØÄꤹ¤ë¤Î¤Ë»È¤ï¤ì¤ë¡£
170 »ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢¥Ç¥Õ¥©¥ë¥È¤Ï \fI/etc/rc\fP ¤Ç¤¢¤ë¡£
171 ¥Ö¡¼¥È¥×¥í¥°¥é¥à¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ë¾ì¹ç¡¢
172 ¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤Ë¤¢¤ëÁ´¤Æ¤Î¥¹¥¯¥ê¥×¥È¤¬ÊÂÎó¤Ë¼Â¹Ô¤µ¤ì¤ë¡£
173 ¼Â¹Ô½ç¤ÎÀ©¸æ¤È°Í¸À¤Î´ÉÍý¤ò¥¨¥ì¥¬¥ó¥È¤Ë¤¹¤ëÊýË¡¤Î¾ÜºÙ¤Ï¡¢
174 \fBneed\fP(8) ¥×¥í¥°¥é¥à¤ò»²¾È¤¹¤ë¤³¤È¡£
176 .\"O The \fBPATH\fP value is assigned to the PATH environment variable of
177 .\"O child processes (boot scripts).
179 »Ò¥×¥í¥»¥¹ (¥Ö¡¼¥È¥¹¥¯¥ê¥×¥È)¤Î´Ä¶ÊÑ¿ô PATH ¤Ë³ä¤êÅö¤Æ¤é¤ì¤ë¡£
181 .\"O The \fBINIT_PATH\fP value is used by simpleinit(8) itself to find the
182 .\"O location of scripts to run (if an absolute path is not given). If
183 .\"O unset and the boot programme is a directory, that directory is used.
184 .\"O Finally, if the script cannot be found in this path, the standard
185 .\"O \fBPATH\fP is used. This separation allows boot scripts to invoke
186 .\"O programmes of the same name without conflict and without needing to
187 .\"O specify absolute paths.
188 (ÀäÂХѥ¹¤¬Í¿¤¨¤é¤ì¤Ê¤¤¾ì¹ç)
189 \fBINIT_PATH\fP ¤Ï¼Â¹Ô¤¹¤ë¥¹¥¯¥ê¥×¥È¤Î¾ì½ê¤ò¸«ÉÕ¤±¤ë¤¿¤á¤Ë
190 simpleinit(8) ¼«¿È¤Ë¤è¤Ã¤Æ»È¤ï¤ì¤ë¡£
191 ¥Ç¥Õ¥©¥ë¥È¤ÎÃͤò unset ¤·¤Æ¡¢¥Ö¡¼¥È¥×¥í¥°¥é¥à¤¬¥Ç¥£¥ì¥¯¥È¥ê¤Î¾ì¹ç¡¢
192 ¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤¬»È¤ï¤ì¤ë¡£
193 ºÇ¸å¤Ë¡¢¤³¤Î¥Ñ¥¹¤Ç¥¹¥¯¥ê¥×¥È¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¡¢
194 ɸ½à¤Î \fBPATH\fP ¤¬»È¤ï¤ì¤ë¡£
195 \fBPATH\fP ¤È \fBINIT_PATH\fP ¤òʬ¤±¤ë¤³¤È¤Ë¤è¤ê¡¢
196 ¥Ö¡¼¥È¥¹¥¯¥ê¥×¥È¤ÏƱ¤¸Ì¾Á°¤Î¥×¥í¥°¥é¥à¤ò
197 ¾×ÆͤäÀäÂХѥ¹¤Î»ØÄê¤Ê¤·¤Ëµ¯Æ°¤Ç¤¤ë¡£
199 .\"O The \fBfinalprog\fP value specifies the path of the programme to run
200 .\"O after all \fBgetty\fP(8) instances are spawned. At bootup, it is
201 .\"O passed a single argument: "start". At shutdown, it is called again,
202 .\"O this time with the argument: "stop".
203 \fBfinalprog\fP ¤ÎÃͤϡ¢
204 Á´¤Æ¤Î \fBgetty\fP(8) ¥¤¥ó¥¹¥¿¥ó¥¹¤¬À¸À®¤µ¤ì¤¿¸å¤Ç
205 ¼Â¹Ô¤µ¤ì¤ë¥×¥í¥°¥é¥à¤Î¥Ñ¥¹¤ò»ØÄꤹ¤ë¡£
206 ¥Ö¡¼¥È»þ¤Ë¤Ï¡¢"start" ¤È¤¤¤¦ 1 ¸Ä¤Î°ú¤¿ô¤¬ÅϤµ¤ì¤ë¡£
207 ¥·¥ã¥Ã¥È¥À¥¦¥ó»þ¤Ë¤â¡¢"stop" ¤È¤¤¤¦°ú¤¿ô¤Ç¸Æ¤Ð¤ì¤ë¡£
210 .\"O \fBsimpleinit\fP(8) responds to signals in a variety of ways:
211 \fBsimpleinit\fP(8) ¤Ï¡¢¤¤¤í¤¤¤í¤ÊÊýË¡¤Ç¥·¥°¥Ê¥ë¤Ë±þÅú¤¹¤ë:
214 .\"O The \fI/etc/inittab\fP configuration file will be read again.
215 ÀßÄê¥Õ¥¡¥¤¥ë \fI/etc/inittab\fP ¤¬ºÆÅÙÆɤ߹þ¤Þ¤ì¤ë¡£
218 .\"O This flips a toggle, which controls whether more processes will be
220 ¥×¥í¥»¥¹¤ò¹¹¤ËÀ¸À®¤¹¤ë¤«¤É¤¦¤«¤ò·è¤á¤ë¥È¥°¥ë¤òÀÚÂؤ¨¤ë¡£
223 .\"O \fBsimpleinit\fP(8) will sync a few times, and try to start
224 .\"O \fBreboot\fP(8). Failing this, it will execute the system
225 .\"O \fBreboot\fP(2) call. Under Linux, it is possible to configure the
226 .\"O Ctrl-Alt-Del sequence to send a signal to the \fBinit\fP process
227 .\"O instead of rebooting the system (\fBsimpleinit\fP(8) does this by
229 \fBsimpleinit\fP(8) ¤Ï¿ô²ó sync ¤ò¼Â¹Ô¤·¡¢
230 \fBreboot\fP(8) ¤ò³«»Ï¤·¤è¤¦¤È¤¹¤ë¡£
231 ¼ºÇÔ¤·¤¿¾ì¹ç¤Ï¡¢¥·¥¹¥Æ¥à¤Î \fBreboot\fP(2) ¥³¡¼¥ë¤ò¼Â¹Ô¤¹¤ë¡£
232 Linux ¤Ç¤Ï¡¢Ctrl-Alt-Del ¥·¡¼¥±¥ó¥¹¤¬¡¢
233 ¥·¥¹¥Æ¥à¤Î¥ê¥Ö¡¼¥È¤Ç¤Ï¤Ê¤¯¡¢
234 \fBinit\fP ¥×¥í¥»¥¹¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ë¤è¤¦¤ËÀßÄê¤Ç¤¤ë
235 (\fBsimpleinit\fP(8) ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¤³¤Î¤è¤¦¤Ë¤·¤Æ¤¤¤ë)¡£
238 .\"O The \fBreboot\fP(8) programme is executed in place of the
239 .\"O \fBsimpleinit\fP(8) programme. This allows \fBreboot\fP(8) to cleanly
240 .\"O remount (read-only) the root filesystem, even if the old inode for the
241 .\"O \fBinit\fP process was unlinked.
242 \fBsimpleinit\fP(8) ¥×¥í¥°¥é¥à¤ÎÂå¤ï¤ê¤Ë¡¢
243 \fBreboot\fP(8) ¥×¥í¥°¥é¥à¤¬¼Â¹Ô¤µ¤ì¤ë¡£
244 ¤³¤ì¤Ë¤è¤ê¡¢\fBinit\fP ¥×¥í¥»¥¹¤Î¸Å¤¤ i ¥Î¡¼¥É¤¬ unlink ¤µ¤ì¤Ê¤¤¾ì¹ç¤Ç¤â¡¢
245 \fBreboot\fP(8) ¤Ï¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò
246 (Æɤ߹þ¤ß¤Î¤ß¤Ç) Àµ¤·¤¯ºÆ¥Þ¥¦¥ó¥È¤Ç¤¤ë¡£
272 .\"O This program is called
274 .\"O to distinguish it from the System V compatible versions of init which are
275 .\"O starting to appear in the Linux community.
277 .\"O should be linked to, or made identical with,
279 .\"O for correct functionality.
280 ¤³¤Î¥×¥í¥°¥é¥à¤Ï¡¢Linux ¥³¥ß¥å¥Ë¥Æ¥£¤Ë½Ð¸½¤·»Ï¤á¤¿
281 System V ¸ß´¹ÈǤΠinit ¤È¶èÊ̤¹¤ë¤¿¤á¤Ë¡¢
285 ¤òÀµ¤·¤¯µ¡Ç½¤µ¤»¤ë¤¿¤á¤Ë¤Ï¡¢
287 ¤È¤·¤Æ¥ê¥ó¥¯¤¹¤ë¤«¡¢Æ±°ì¤Ë¤¹¤ë¤Ù¤¤Ç¤¢¤ë¡£
290 Peter Orbaek (poe@daimi.aau.dk)
292 .\"O Version 1.20, with patches for singleuser mode by Werner Almesberger
293 Version 1.20, Werner Almesberger ¤Ë¤è¤ë
294 ¥·¥ó¥°¥ë¥æ¡¼¥¶¡¼¥â¡¼¥É¤Î¥Ñ¥Ã¥Á¡£
296 Richard Gooch <rgooch@atnf.csiro.au>
298 .\"O Dependency support