OSDN Git Service

util-linux: move obsolete
[linuxjm/jm.git] / manual / util-linux / obsolete / man8 / simpleinit.8
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 :-)
4 .\"
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>
10 .\"
11 .TH SIMPLEINIT 8 "25 February 2001" "Linux 0.99" "Linux Programmer's Manual"
12 .\"O .SH NAME
13 .SH 名前
14 .\"O simpleinit \- process control initialization
15 simpleinit \- プロセス制御の初期化を行う
16 .\"O .SH SYNOPSIS
17 .SH 書式
18 .B "init [ single ] [ script ]"
19 .\"O .SH DESCRIPTION
20 .SH 説明
21 .\"O .B init
22 .\"O is invoked as the last step in the Linux boot sequence.  If the
23 .\"O .B single
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
27 .\"O .IR /bin/sh .
28 .B init
29 は Linux ブートシーケンスの最終ステップとして起動される。
30 .B single
31 オプションが使われた場合、またはファイル
32 .I /etc/singleboot
33 がある場合、
34 .IR /bin/sh
35 を起動することでシングルユーザーモードに入る。
36 .\"O If the file
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
40 .\"O .I /etc/passwd
41 .\"O does not exist, the checking of the password will be skipped.
42 ファイル
43 .I /etc/securesingle
44 がある場合、シングルユーザーモードを開始するために
45 root パスワードが必要とされる。
46 root パスワードがない場合、または
47 .I /etc/passwd
48 がない場合、パスワードのチェックは省かれる。
49
50 .\"O If the file
51 .\"O .I /etc/TZ
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
54 .\"O .BR simpleinit .
55 .\"O This "feature" is only available if it's configured at compile-time. It's
56 .\"O not normally needed.
57 ファイル
58 .I /etc/TZ
59 がある場合、その内容が読み込まれ、
60 .B simpleinit
61 によって開始される各プロセスの環境変数
62 TZ を設定するために使われる。
63 「この機能」はコンパイル時に設定されている場合にのみ使用可能である。
64 通常は必要とされない。
65
66 .\"O After single user mode is terminated, the
67 .\"O .I /etc/rc
68 .\"O file is executed, and the information in
69 .\"O .I /etc/inittab
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
72 .\"O details.
73 シングルユーザーモードが終了した後、
74 .I /etc/rc
75 ファイルが実行される。
76 .I /etc/inittab
77 にある情報は、プロセスを開始するために使われる。
78 別の方法として、他のブートスクリプトを実行するように
79 \fI/etc/inittab\fP ファイルを設定してもよい。
80 詳細は下記を参照すること。
81
82 .\"O .SH "THE INITTAB FILE"
83 .SH INITTAB ファイル
84 .\"O Because of the number of init programs which are appearing in the Linux
85 .\"O community, the documentation for the
86 .\"O .I /etc/inittab
87 .\"O file, which is usually found with the
88 .\"O .BR inittab (5)
89 .\"O man page, is presented here:
90 Linux コミュニティではいくつもの init プログラムが出現しているので、
91 通常
92 .BR inittab (5)
93 の man ページに書かれている
94 .I /etc/inittab
95 ファイルについてのドキュメントをここに載せる:
96
97 .\"O The format is
98 フォーマットは次のようになっている。
99
100 .RS
101 .\"O .B bootprog=file
102 .\"O 
103 .\"O .B fileprefix=string
104 .\"O 
105 .\"O .B PATH=search path
106 .\"O 
107 .\"O .B INIT_PATH=search path
108 .\"O 
109 .\"O .B "ttyline:termcap-entry:getty-command"
110 .\"O 
111 .\"O .B finalprog=path
112 .B bootprog=ファイル
113
114 .B fileprefix=文字列
115
116 .B PATH=検索パス
117
118 .B INIT_PATH=検索パス
119
120 .B "tty ライン:termcap エントリ:getty コマンド"
121
122 .B finalprog=パス
123 .RE
124
125 .\"O An example is as follows:
126 以下に例を示す:
127
128 .nf
129 .RS
130 bootprog     =
131 fileprefix   =  /sbin/init.d/
132 PATH         =  /usr/sbin:/usr/bin:/sbin:/bin
133 INIT_PATH    =  /sbin/init.d
134
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
142
143 finalprog   = /sbin/rc.xdm
144 .RE
145 .fi
146
147 .\"O Lines beginning with the
148 .\"O .B #
149 .\"O character are treated as comments.  Please see documentation for the
150 .\"O .B getty (8)
151 .\"O command that you are using, since there are several of these in the Linux
152 .\"O community at this time.
153 .B #
154 文字で始まる行はコメントとして扱われる。
155 現在のところ Linux コミュニティでは
156 .B getty (8)
157 のようなコマンドがいくつかあるため、
158 あなたが使っている
159 .B getty (8)
160 コマンドのドキュメントを参照すること。
161
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) プログラムを参照すること。
175
176 .\"O The \fBPATH\fP value is assigned to the PATH environment variable of
177 .\"O child processes (boot scripts).
178 \fBPATH\fP の値は、
179 子プロセス (ブートスクリプト)の環境変数 PATH に割り当てられる。
180
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 衝突や絶対パスの指定なしに起動できる。
198
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" という引き数で呼ばれる。
208 .\"O .SH SIGNALS
209 .SH シグナル
210 .\"O \fBsimpleinit\fP(8) responds to signals in a variety of ways:
211 \fBsimpleinit\fP(8) は、いろいろな方法でシグナルに応答する:
212 .TP
213 .B SIGHUP
214 .\"O The \fI/etc/inittab\fP configuration file will be read again.
215 設定ファイル \fI/etc/inittab\fP が再度読み込まれる。
216 .TP
217 .B SIGTSTP
218 .\"O This flips a toggle, which controls whether more processes will be
219 .\"O spawned.
220 プロセスを更に生成するかどうかを決めるトグルを切替える。
221 .TP
222 .B SIGINT
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
228 .\"O default).
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) はデフォルトでこのようにしている)。
236 .TP
237 .B SIGQUIT
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 (読み込みのみで) 正しく再マウントできる。
247 .\"O .SH FILES
248 .SH ファイル
249 .I /etc/inittab
250 .br
251 .I /etc/singleboot
252 .br
253 .I /etc/securesingle
254 .br
255 .I /etc/TZ
256 .br
257 .I /etc/passwd
258 .br
259 .I /etc/rc
260 .\"O .SH "SEE ALSO"
261 .SH 関連項目
262 .BR inittab (5),
263 .BR ctrlaltdel (8)
264 .BR reboot (8),
265 .BR termcap (5),
266 .BR getty (8),
267 .BR agetty (8),
268 .BR shutdown (8),
269 .BR initctl (8)
270 .\"O .SH BUGS
271 .SH バグ
272 .\"O This program is called
273 .\"O .B simpleinit
274 .\"O to distinguish it from the System V compatible versions of init which are
275 .\"O starting to appear in the Linux community.
276 .\"O .B simpleinit
277 .\"O should be linked to, or made identical with,
278 .\"O .I init
279 .\"O for correct functionality.
280 このプログラムは、Linux コミュニティに出現し始めた
281 System V 互換版の init と区別するために、
282 .B simpleinit
283 と呼ばれる。
284 .B simpleinit
285 を正しく機能させるためには、
286 .I init
287 としてリンクするか、同一にするべきである。
288 .\"O .SH AUTHOR
289 .SH 著者
290 Peter Orbaek (poe@daimi.aau.dk)
291 .br
292 .\"O Version 1.20, with patches for singleuser mode by Werner Almesberger
293 Version 1.20, Werner Almesberger による
294 シングルユーザーモードのパッチ。
295 .br
296 Richard Gooch <rgooch@atnf.csiro.au>
297 .br
298 .\"O Dependency support
299 依存性のサポート。