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 ブートシーケンスの最終ステップとして起動される。
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 がある場合、シングルユーザーモードを開始するために
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.
63 「この機能」はコンパイル時に設定されている場合にのみ使用可能である。
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
77 にある情報は、プロセスを開始するために使われる。
78 別の方法として、他のブートスクリプトを実行するように
79 \fI/etc/inittab\fP ファイルを設定してもよい。
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 プログラムが出現しているので、
95 ファイルについてのドキュメントをここに載せる:
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
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.
155 現在のところ Linux コミュニティでは
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.
189 \fBINIT_PATH\fP は実行するスクリプトの場所を見付けるために
190 simpleinit(8) 自身によって使われる。
191 デフォルトの値を unset して、ブートプログラムがディレクトリの場合、
193 最後に、このパスでスクリプトが見つからなかった場合、
194 標準の \fBPATH\fP が使われる。
195 \fBPATH\fP と \fBINIT_PATH\fP を分けることにより、
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".
204 全ての \fBgetty\fP(8) インスタンスが生成された後で
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 シーケンスが、
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 と区別するために、
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 による
296 Richard Gooch <rgooch@atnf.csiro.au>
298 .\"O Dependency support