OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / util-linux / draft / 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 °Í¸À­¤Î¥µ¥Ý¡¼¥È¡£