OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / SysVinit / draft / man8 / init.8
1 .\" This page is originally in the SysVinit package.
2 .\"
3 .\" Translated Fri 14 Feb 1997
4 .\"         by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
5 .\" Updated Sun 14 May 2000 by Kentaro Shirakata <argrath@ub32.org>
6 .\" Updated Fri 27 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
7 .\"
8 .\"{{{}}}
9 .\"{{{  Title
10 .TH INIT 8 "23 August 2001" "" "Linux System Administrator's Manual"
11 .\"}}}
12 .\"{{{  Name
13 .\"O .SH NAME
14 .\"O init, telinit \- process control initialization
15 .SH Ì¾Á°
16 init, telinit \- ¥×¥í¥»¥¹À©¸æ¤Î½é´ü²½
17 .\"}}}
18 .\"{{{  Synopsis
19 .\"O .SH SYNOPSIS
20 .SH ½ñ¼°
21 .B /sbin/init
22 .RB [ " -a " ]
23 .RB [ " -s " ]
24 .RB [ " -b " ]
25 .RB [ " -z xxx " ]
26 .RB [ " 0123456Ss " ]
27 .br
28 .B /sbin/telinit
29 .RB [ " \-t sec " ]
30 .RB [ " 0123456sSQqabcUu " ]
31 .\"}}}
32 .\"{{{  Description
33 .\"O .SH DESCRIPTION
34 .SH ÀâÌÀ
35 .\"{{{  init
36 .\"O .SS Init
37 .\"O nakano ¤³¤Î subsection ¤¤¤é¤Ê¤¤¤È»×¤¦¡£
38 .\"O .B Init
39 .\"O is the parent of all processes.  Its primary role is to create processes
40 .\"O from a script stored in the file \fB/etc/inittab\fP (see
41 .\"O \fIinittab\fP(5)).  This file usually has entries which cause \fBinit\fP
42 .\"O to spawn \fBgetty\fPs on each line that users can log in.  It also
43 .\"O controls autonomous processes required by any particular system.
44 .B init
45 ¤ÏÁ´¤Æ¤Î¥×¥í¥»¥¹¤Î¿Æ¤Ç¤¢¤ë¡£
46 ¤½¤Î¼ç¤ÊÌò³ä¤Ï¡¢\fB/etc/inittab\fP (\fIinittab\fP(5) »²¾È)
47 ¥Õ¥¡¥¤¥ë¤Ë½ñ¤«¤ì¤¿¥¹¥¯¥ê¥×¥È¤Ë½¾¤Ã¤Æ¥×¥í¥»¥¹¤òºî¤ê½Ð¤¹¤³¤È¤Ë¤¢¤ë¡£
48 Ä̾盧¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢¥æ¡¼¥¶¤¬¥í¥°¥¤¥ó²Äǽ¤Ê³ÆÀܳ¥é¥¤¥ó¤´¤È¤Ë
49 \fBgetty\fP ¤òÀ¸À®¤µ¤»¤ë¤¿¤á¤Î¥¨¥ó¥È¥ê¤¬µ­¤µ¤ì¤Æ¤¤¤ë¡£
50 ¤Þ¤¿¡¢ÆÃÄê¤Î¥·¥¹¥Æ¥à¤¬É¬ÍפȤ¹¤ë¡¢¼«Î§Åª¤Ê¥×¥í¥»¥¹¤ÎÀ©¸æ¤â¹Ô¤¦¡£
51 .\"O .PP
52 .\"{{{ Runlevels
53 .\"O .SH RUNLEVELS
54 .SH ¥é¥ó¥ì¥Ù¥ë
55 .\"O A \fIrunlevel\fP is a software configuration of the system which allows
56 .\"O only a selected group of processes to exist.  The processes spawned by
57 .\"O \fBinit\fP for each of these runlevels are defined in the
58 .\"O \fB/etc/inittab\fP file.  \fBInit\fP can be in one of eight runlevels:
59 .\"O \fB0\(en6\fP and \fBS\fP or \fBs\fP.  The runlevel is
60 .\"O changed by having a privileged user run \fBtelinit\fP, which sends
61 .\"O appropriate signals to \fBinit\fP, telling it which runlevel to change
62 .\"O to.
63 \fI¥é¥ó¥ì¥Ù¥ë\fP ¤È¤Ï¥·¥¹¥Æ¥à¤Î¥½¥Õ¥È¥¦¥§¥¢Åª¤ÊÀßÄê¤Ç¡¢
64 »ØÄꤷ¤¿¥×¥í¥»¥¹·²¤Î¤ß¤ò¸ºß¤µ¤»¤ë¤è¤¦¤Ë¤¹¤ë¤â¤Î¤Ç¤¢¤ë¡£
65 ¤½¤ì¤¾¤ì¤Î¥é¥ó¥ì¥Ù¥ë¤Ç \fBinit\fP ¤¬ºî¤ê½Ð¤¹¥×¥í¥»¥¹¤Ï
66 \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ë¤ÇÄê¤á¤é¤ì¤Æ¤¤¤ë¡£
67 \fBinit\fP ¤Ï \fB0\(en6\fP, \fBS\fP, \fBs\fP ¤È¤¤¤¦
68 8 ¤Ä¤Î¥é¥ó¥ì¥Ù¥ë¤Î¤¦¤Á¤Î°ì¤Ä¤ò¼è¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
69 ¥é¥ó¥ì¥Ù¥ë¤ÏÆø¢¥æ¡¼¥¶¤¬ \fBtelinit\fP ¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ë¤è¤Ã¤ÆÊѹ¹¤µ¤ì¤ë¡£
70 \fBtelinit\fP ¤Ï \fBinit\fP ¤ËŬÀڤʥ·¥°¥Ê¥ë¤òÁ÷¤ê¡¢
71 ¤É¤Î¥é¥ó¥ì¥Ù¥ë¤ËÊѹ¹¤¹¤Ù¤­¤«¤ò»Ø¼¨¤¹¤ë¡£
72 .PP
73 .\"O Runlevels \fB0\fP, \fB1\fP, and \fB6\fP are reserved. Runlevel 0 is used to
74 .\"O halt the system, runlevel 6 is used to reboot the system, and runlevel
75 .\"O 1 is used to get the system down into single user mode. Runlevel \fBS\fP
76 .\"O is not really meant to be used directly, but more for the scripts that are
77 .\"O executed when entering runlevel 1. For more information on this,
78 .\"O see the manpages for \fBshutdown\fP(8) and \fBinittab\fP(5).
79 ¥é¥ó¥ì¥Ù¥ë \fB0\fP, \fB1\fP, \fB6\fP ¤ÏͽÌ󤵤ì¤Æ¤¤¤ë¡£
80 ¥é¥ó¥ì¥Ù¥ë 0 ¤Ï¥·¥¹¥Æ¥à¤òÄä»ß¤¹¤ë¤¿¤á¤Ë¡¢
81 ¥é¥ó¥ì¥Ù¥ë 6 ¤Ï¥·¥¹¥Æ¥à¤ò¥ê¥Ö¡¼¥È¤¹¤ë¤¿¤á¤Ë¡¢
82 ¥é¥ó¥ì¥Ù¥ë 1 ¤Ï¥·¥¹¥Æ¥à¤ò¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ë¤¹¤ë¤¿¤á¤ËÍѤ¤¤é¤ì¤ë¡£
83 ¥é¥ó¥ì¥Ù¥ë \fBS\fP ¤ÏľÀÜÍѤ¤¤ë¤¿¤á¤Î¤â¤Î¤Ç¤Ï¤Ê¤¯¡¢
84 ¥é¥ó¥ì¥Ù¥ë \fB1\fP ¤Ë¤Ê¤Ã¤¿»þ¤Ë¼Â¹Ô¤µ¤ì¤ë¥¹¥¯¥ê¥×¥È¤Î¤¿¤á¤Ë¸ºß¤¹¤ë¡£
85 ¤³¤Î¾ÜºÙ¤Ï \fBshutdown\fP(8) ¤ª¤è¤Ó \fBinittab\fP(5)
86 ³Æ man ¥Ú¡¼¥¸¤ò»²¾È¤Î¤³¤È¡£
87 .PP
88 .\"O Runlevels 7-9 are also valid, though not really documented. This is
89 .\"O because "traditional" Unix variants don't use them.
90 .\"O In case you're curious, runlevels \fIS\fP and \fIs\fP are in fact the same.
91 .\"O Internally they are aliases for the same runlevel.
92 ʸ½ñ¤Ë¤Ï½ñ¤«¤ì¤Æ¤Ï¤¤¤Ê¤¤¤¬¡¢¥é¥ó¥ì¥Ù¥ë 7-9 ¤â»ÈÍѤǤ­¤ë¡£
93 ʸ½ñ¤Ë½ñ¤«¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ï¡¢¡ÖÅÁÅýŪ¤Ê¡×
94 Unix ¤ÎÇÉÀ¸¼ï¤Ï¥é¥ó¥ì¥Ù¥ë 7-9 ¤ò»ÈÍѤ·¤Æ¤¤¤Ê¤¤¤«¤é¤Ç¤¢¤ë¡£
95 »²¹Í¤Î¤¿¤á¤Ë¸À¤Ã¤Æ¤ª¤¯¤È¡¢¼Â¤Ï¥é¥ó¥ì¥Ù¥ë \fIS\fP ¤È \fIs\fP ¤âƱÍͤǤ¢¤ë¡£
96 ÆâÉôŪ¤Ë¤Ï¡¢¤³¤Î 2 ¤Ä¤ÏƱ°ì¤Î¥é¥ó¥ì¥Ù¥ë¤Î¥¨¥¤¥ê¥¢¥¹¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
97 .\"}}}
98 .\"O .PP
99 .\"O .SH BOOTING
100 .SH ¥Ö¡¼¥È
101 .\"O After \fBinit\fP is invoked as the last step of the kernel boot sequence,
102 .\"O it looks for the file \fB/etc/inittab\fP to see if there is an entry of the
103 .\"O type \fBinitdefault\fP (see \fIinittab\fP(5)). The \fBinitdefault\fP entry
104 .\"O determines the initial runlevel of the system.  If there is no such
105 .\"O entry (or no \fB/etc/inittab\fP at all), a runlevel must be
106 .\"O entered at the system console.
107 ¥«¡¼¥Í¥ë¥Ö¡¼¥È¤ÎºÇ¸å¤Î¥¹¥Æ¥Ã¥×¤È¤·¤Æ \fBinit\fP ¤¬µ¯Æ°¤µ¤ì¤ë¤È¡¢
108 \fBinit\fP ¤Ï \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤·¡¢
109 \fBinitdefault\fP ¤È¤¤¤¦¥¨¥ó¥È¥ê¤¬Â¸ºß¤¹¤ë¤«Ä´¤Ù¤ë
110 (\fIinittab\fP(5) »²¾È)¡£
111 \fBinitdefault\fP ¤Ï¥·¥¹¥Æ¥à¤¬ºÇ½é¤Ë¼è¤ë¤Ù¤­¥é¥ó¥ì¥Ù¥ë¤òÄêµÁ¤¹¤ë¡£
112 \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ëÃæ¤Ë¤½¤Î¤è¤¦¤Ê¥¨¥ó¥È¥ê¤¬¤Ê¤¤¾ì¹ç¡¢
113 ¤¢¤ë¤¤¤Ï \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ë¼«ÂΤ¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢
114 ¥·¥¹¥Æ¥à¥³¥ó¥½¡¼¥ë¤«¤é¥é¥ó¥ì¥Ù¥ë¤òÆþÎϤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
115 .PP
116 .\"O Runlevel \fBS\fP or \fBs\fP bring the system to single user mode
117 .\"O and do not require an \fB/etc/inittab\fP file.  In single user mode,
118 .\"O \fB/sbin/sulogin\fP is invoked on \fB/dev/console\fP.
119 ¥é¥ó¥ì¥Ù¥ë¤ò \fBS\fP ¤Þ¤¿¤Ï \fBs\fP ¤Ë¤¹¤ë¤È¡¢
120 ¥·¥¹¥Æ¥à¤Ï¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤ËÆþ¤ë¡£
121 ¤³¤Î¾ì¹ç¤Ï \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ë¤òɬÍפȤ·¤Ê¤¤¡£
122 ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ç¤Ï¡¢\fB/dev/console\fP ¤Ç
123 \fB/sbin/sulogin\fP ¤¬µ¯Æ°¤µ¤ì¤ë¡£
124 .PP
125 .\"O When entering single user mode, \fBinit\fP reads the console's \fIioctl\fP(2)
126 .\"O states from \fB/etc/ioctl.save\fP. If this file does not exist, \fBinit\fP
127 .\"O initializes the line at \fB9600 baud\fP and with \fBCLOCAL\fP settings.
128 .\"O When \fBinit\fP leaves single user mode, it stores the console's \fIioctl\fP
129 .\"O settings in this file so it can re-use them for the next single-user session.
130 ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤ËÆþ¤ë¤È¤­¡¢
131 \fBinit\fP ¤Ï \fB/etc/ioctl.save\fP ¤«¤é¥³¥ó¥½¡¼¥ë¤Î
132 \fIioctl\fP(2) ¤Î¾õÂÖ¤òÆɤ߹þ¤à¡£
133 ¤³¤Î¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢\fBinit\fP
134 ¤Ï¥³¥ó¥½¡¼¥ë¤ÎÀܳ¥é¥¤¥ó¤ò
135 \fB9600 baud\fP ¤Ç \fBCLOCAL\fP ¤È¤¤¤¦ÀßÄê
136 (ÌõÃí: ¥í¡¼¥«¥ë¤ËľÀÜÀܳ¤µ¤ì¤Æ¤¤¤ë¾õÂÖ) ¤Ë½é´ü²½¤¹¤ë¡£
137 ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤òÈ´¤±¤ëºÝ¤Ë¤Ï¡¢
138 ¼¡²ó¤Î¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¥»¥Ã¥·¥ç¥ó¤Ç¤âƱ¤¸ÀßÄê¤òÍøÍѤǤ­¤ë¤è¤¦¡¢
139 ¥³¥ó¥½¡¼¥ë¤Î \fIioctl\fP ¤Î¾õÂÖ¤ò
140 \fB/etc/ioctl.save\fP ¥Õ¥¡¥¤¥ë¤ËÊݸ¤¹¤ë¡£
141 .PP
142 .\"O When entering a multi-user mode for the first time, \fBinit\fP performs the
143 .\"O \fBboot\fP and \fBbootwait\fP entries to allow file systems to be
144 .\"O mounted before users can log in.  Then all entries matching the runlevel
145 .\"O are processed.
146 ½é¤á¤Æ¥Þ¥ë¥Á¥æ¡¼¥¶¥â¡¼¥É¤ËÆþ¤ë¤È¤­¡¢
147 \fBinit\fP ¤Ï
148 \fBboot\fP ¥¨¥ó¥È¥ê¤È \fBbootwait\fP ¥¨¥ó¥È¥ê¤ò¼Â¹Ô¤·¡¢
149 ¥æ¡¼¥¶¤¬¥í¥°¥¤¥ó²Äǽ¤È¤Ê¤ëÁ°¤Ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë¡£
150 ¤½¤·¤Æ¡¢¥é¥ó¥ì¥Ù¥ë¤Ë¥Þ¥Ã¥Á¤¹¤ëÁ´¤Æ¤Î¥¨¥ó¥È¥ê¤ò½èÍý¤¹¤ë¡£
151 .PP
152 .\"O When starting a new process, \fBinit\fP first checks whether the file
153 .\"O \fI/etc/initscript\fP exists. If it does, it uses this script to
154 .\"O start the process.
155 ¿·¤¿¤Ê¥×¥í¥»¥¹¤òµ¯Æ°¤¹¤ë¤È¤­¡¢
156 \fBinit\fP ¤Ï¤Þ¤º \fI/etc/initscript\fP ¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¤«¤òÄ´¤Ù¡¢
157 ¸ºß¤¹¤ë¾ì¹ç¤Ï¤½¤Î¥¹¥¯¥ê¥×¥È¤òÍѤ¤¤Æ¥×¥í¥»¥¹¤òµ¯Æ°¤¹¤ë¡£
158 .PP
159 .\"O Each time a child terminates, \fBinit\fP records the fact and the reason
160 .\"O it died in \fB/var/run/utmp\fP and \fB/var/log/wtmp\fP,
161 .\"O provided that these files exist.
162 »Ò¥×¥í¥»¥¹¤¬½ªÎ»¤¹¤ë¤´¤È¤Ë¡¢
163 \fBinit\fP ¤Ï¤½¤Î»Ý¤È½ªÎ»¤·¤¿Íýͳ¤È¤ò¡¢
164 \fB/var/run/utmp\fP ¤È \fB/var/log/wtmp\fP ¤È¤Ëµ­Ï¿¤¹¤ë
165 (¤¿¤À¤·¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤¬Â¸ºß¤¹¤ë¾ì¹ç)¡£
166 .\"O .SH CHANGING RUNLEVELS
167 .SH ¥é¥ó¥ì¥Ù¥ë¤ÎÊѹ¹
168 .\"O After it has spawned all of the processes specified, \fBinit\fP waits
169 .\"O for one of its descendant processes to die, a powerfail signal, or until
170 .\"O it is signaled by \fBtelinit\fP to change the system's runlevel.  
171 .\"O When one of the above three conditions occurs, it re-examines
172 .\"O the \fB/etc/inittab\fP file.  New entries can be added to this file at
173 .\"O any time.  However, \fBinit\fP still waits for one of the above three
174 .\"O conditions to occur.  To provide for an instantaneous response, the
175 .\"O \fBtelinit Q\fP or \fBq\fP command can wake up \fBinit\fP to re-examine the
176 .\"O \fB/etc/inittab\fP file.
177 »Ø¼¨¤µ¤ì¤¿Á´¤Æ¤Î¥×¥í¥»¥¹¤òÀ¸À®¤¹¤ë¤È¡¢\fBinit\fP ¤Ï
178 »Ò¹¤Î¥×¥í¥»¥¹¤¬»à¤Ì¤«¡¢powerfail ¥·¥°¥Ê¥ë¤¬È¯¤»¤é¤ì¤ë¤«¡¢
179 \fBtelinit\fP ¤«¤é¥é¥ó¥ì¥Ù¥ë¤òÊѹ¹¤»¤è¤È¤Î¥·¥°¥Ê¥ë¤¬Á÷¤é¤ì¤ë¤Þ¤ÇÂÔµ¡¤¹¤ë¡£
180 ¤³¤Î 3 ¤Ä¤Î¤¤¤º¤ì¤«¤¬µ¯¤­¤¿¾ì¹ç¤Ï¡¢
181 \fBinit\fP ¤Ï \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ë¤òºÆÅÙÄ´¤Ù¤ë¡£
182 ¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢¤¤¤Ä¤Ç¤â¿·¤¿¤Ê¥¨¥ó¥È¥ê¤òÄɲäǤ­¤ë¡£
183 ¤·¤«¤·¡¢¾å¤Î 3 ¾ò·ï¤Î¤É¤ì¤«¤¬µ¯¤­¤ë¤Þ¤Ç¤Ï¡¢
184 \fBinit\fP ¤ÏÂÔµ¡¾õÂÖ¤ò³¤±¤ë¡£
185 ¿·¤¿¤Ê¥¨¥ó¥È¥ê¤ò¨ºÂ¤ËÈ¿±Ç¤µ¤»¤ë¤Ë¤Ï¡¢
186 \fBtelinit Q\fP ¤Þ¤¿¤Ï \fBq\fP ¥³¥Þ¥ó¥É¤òÍѤ¤¤Æ
187 \fBinit\fP ¤òÌܳФᤵ¤»¡¢
188 \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ë¤òºÆÅÙÄ´¤Ù¤µ¤»¤ì¤Ð¤è¤¤¡£
189 .PP
190 .\"O If \fBinit\fP is not in single user mode and receives a powerfail
191 .\"O signal (SIGPWR), it reads the file \fB/etc/powerstatus\fP. It then starts
192 .\"O a command based on the contents of this file:
193 ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ë¤Ê¤¤»þ¤Ë \fBinit\fP ¤¬ powerfail ¥·¥°¥Ê¥ë (SIGPWR)
194 ¤ò¼õ¤±¼è¤ë¤È¡¢\fBinit\fP ¤Ï \fB/etc/powerstatus\fP ¥Õ¥¡¥¤¥ë¤òÆɤ߹þ¤à¡£
195 ¤½¤·¤Æ¤³¤Î¥Õ¥¡¥¤¥ë¤ÎÆâÍƤ˴ð¤Å¤¤¤Æ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¡£
196 .IP F(AIL)
197 .\"O Power is failing, UPS is providing the power. Execute the \fBpowerwait\fP
198 .\"O and \fBpowerfail\fP entries.
199 ÅŸ»¶¡µë¤¬ÅÓÀ䤨¡¢UPS ¤¬ÅŸ»¤ò¶¡µë¤·¤Æ¤¤¤ë¡£
200 \fBpowerwait\fP ¥¨¥ó¥È¥ê¤È \fBpowerfail\fP ¥¨¥ó¥È¥ê¤ò¼Â¹Ô¤¹¤ë¡£
201 .IP O(K)
202 .\"O The power has been restored, execute the \fBpowerokwait\fP entries.
203 ÅŸ»¶¡µë¤¬²óÉü¤·¤Æ¤¤¤ë¡£\fBpowerokwait\fP ¥¨¥ó¥È¥ê¤ò¼Â¹Ô¤¹¤ë¡£
204 .IP L(OW)
205 .\"O The power is failing and the UPS has a low battery. Execute the
206 .\"O \fBpowerfailnow\fP entries.
207 ÅŸ»¶¡µë¤¬ÅÓÀ䤨¡¢UPS ¤Î¥Ð¥Ã¥Æ¥ê¡¼ÍÆÎ̤¬¾¯¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤ë¡£
208 \fBpowerfailnow\fP ¥¨¥ó¥È¥ê¤ò¼Â¹Ô¤¹¤ë¡£
209 .PP
210 .\"O If /etc/powerstatus doesn't exist or contains anything else then the
211 .\"O letters \fBF\fP, \fBO\fP or \fBL\fP, init will behave as if it has read
212 .\"O the letter \fBF\fP.
213 /etc/powerstatus ¤¬Â¸ºß¤·¤Ê¤¤¤«¡¢¤½¤ÎÆâÍƤ¬
214 \fBF\fP, \fBO\fP, \fBL\fP ¤Î¤¤¤º¤ì¤Ç¤â¤Ê¤¤¾ì¹ç¡¢
215 init ¤Ï \fBF\fP ¤òÆɤ߹þ¤ó¤À¤â¤Î¤È¤·¤ÆÆ°ºî¤¹¤ë¡£
216 .PP
217 .\"O Usage of \fBSIGPWR\fP and \fB/etc/powerstatus\fP is discouraged. Someone
218 .\"O wanting to interact with \fBinit\fP should use the \fB/dev/initctl\fP
219 .\"O control channel - see the source code of the \fBsysvinit\fP package
220 .\"O for more documentation about this.
221 \fBSIGPWR\fP ¤È \fB/etc/powerstatus\fP ¤ÎÍøÍѤϿ侩¤µ¤ì¤Ê¤¤¡£
222 \fBinit\fP ¤ÈÄÌ¿®¤·¤¿¤¤¾ì¹ç¤Ï¡¢
223 À©¸æ¥Á¥ã¥Í¥ë \fB/dev/initctl\fP ¤ò»È¤¦¤Ù¤­¤Ç¤¢¤ë¡£
224 ¤³¤ì¤Ë´Ø¤¹¤ë¾Ü¤·¤¤µ­½Ò¤Ï¡¢
225 \fBsysvinit\fP ¥Ñ¥Ã¥±¡¼¥¸¤Î¥½¡¼¥¹¥³¡¼¥É¤ò»²¾È¤¹¤ë¤³¤È¡£
226 .PP
227 .\"O When \fBinit\fP is requested to change the runlevel, it sends the
228 .\"O warning signal \s-1\fBSIGTERM\fP\s0 to all processes that are undefined
229 .\"O in the new runlevel.  It then waits 5 seconds before forcibly
230 .\"O terminating these processes via the \s-1\fBSIGKILL\fP\s0 signal.
231 .\"O Note that \fBinit\fP assumes that all these processes (and their
232 .\"O descendants) remain in the same process group which \fBinit\fP
233 .\"O originally created for them.  If any process changes its process group
234 .\"O affiliation it will not receive these signals.  Such processes need to
235 .\"O be terminated separately.
236 \fBinit\fP ¤Ï¡¢¥é¥ó¥ì¥Ù¥ë¤òÊѹ¹¤¹¤ë¤è¤¦Í×ÀÁ¤ò¼õ¤±¤ë¤È¡¢
237 ¤Þ¤º¿·¤¿¤Ê¥é¥ó¥ì¥Ù¥ë¤Ç¤ÏÄêµÁ¤µ¤ì¤Æ¤¤¤Ê¤¤Á´¤Æ¤Î¥×¥í¥»¥¹¤ËÂФ·¤Æ
238 ·Ù¹ð¥·¥°¥Ê¥ë \s-1\fBSIGTERM\fP\s0 ¤òÁ÷¤ë¡£
239 ¤½¤Î¸å 5 ÉôÖÂÔµ¡¤·¤Æ¤«¤é
240 \s-1\fBSIGKILL\fP\s0 ¥·¥°¥Ê¥ë¤òÁ÷¤ê¡¢¤½¤ì¤é¤Î¥×¥í¥»¥¹¤ò¶¯À©Åª¤Ë½ªÎ»¤µ¤»¤ë¡£
241 \fBinit\fP ¤Ï¡¢
242 ¤³¤ì¤éÁ´¤Æ¤Î¥×¥í¥»¥¹ (¤ª¤è¤Ó¤½¤ì¤é¤Î»Ò¹) ¤Î°¤¹¤ë¥×¥í¥»¥¹¥°¥ë¡¼¥×¤¬¡¢
243 ¤â¤È¤â¤È \fBinit\fP ¤¬Èà¤é¤Î¤¿¤á¤ËÀ¸À®¤·¤¿¤â¤Î¤ÈƱ¤¸¤Ç¤¢¤ë¤È²¾Äꤷ¤Æ¤¤¤ë¡£
244 ¤¢¤ë¥×¥í¥»¥¹¤¬¼«Ê¬¤Î¥×¥í¥»¥¹¥°¥ë¡¼¥×°À­¤òÊѤ¨¤Æ¤·¤Þ¤Ã¤¿¾ì¹ç¤Ï¡¢
245 ¾åµ­¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤é¤Ê¤¤¡£
246 ¤·¤¿¤¬¤Ã¤Æ¡¢¤½¤Î¤è¤¦¤Ê¥×¥í¥»¥¹¤ÏÊ̤ÎÊýË¡¤Ç½ªÎ»¤µ¤»¤ëɬÍפ¬¤¢¤ë¡£
247 .\"}}}
248 .\"{{{  telinit
249 .\"O .SH TELINIT
250 .SH telinit
251 .\"O \fB/sbin/telinit\fP is linked to \fB/sbin/init\fP.  It takes a
252 .\"O one-character argument and signals \fBinit\fP to perform the appropriate
253 .\"O action.  The following arguments serve as directives to
254 .\"O \fBtelinit\fP:
255 \fB/sbin/telinit\fP ¤Ï \fB/sbin/init\fP ¤Ë¥ê¥ó¥¯¤µ¤ì¤Æ¤¤¤ë¡£
256 \fB/sbin/telinit\fP ¤Ï°ìʸ»ú¤Î°ú¿ô¤ò¼õ¤±¼è¤ê¡¢
257 \fBinit\fP ¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤Ã¤ÆŬÀÚ¤ÊÆ°ºî¤ò¹Ô¤Ê¤ï¤»¤ë¡£
258 \fBtelinit\fP ¤Ø¤Î»Ø¼¨¤Ë¤Ï¡¢
259 °Ê²¼¤Ë¼¨¤¹¤è¤¦¤Ê°ú¿ô¤¬ÍøÍѤǤ­¤ë¡£
260 .\"O .IP "\fB0\fP,\fB1\fP,\fB2\fP,\fB3\fP,\fB4\fP,\fB5\fP or \fB6\fP"
261 .IP "\fB0\fP,\fB1\fP,\fB2\fP,\fB3\fP,\fB4\fP,\fB5\fP,\fB6\fP"
262 .\"O tell \fBinit\fP to switch to the specified run level.
263 »ØÄꤵ¤ì¤¿¥é¥ó¥ì¥Ù¥ë¤ËÊѹ¹¤¹¤ë¤è¤¦ \fBinit\fP ¤ËÅÁ¤¨¤ë¡£
264 .IP \fBa\fP,\fBb\fP,\fBc\fP
265 .\"O tell \fBinit\fP to process only those \fB/etc/inittab\fP file
266 .\"O entries having runlevel \fBa\fP,\fBb\fP or \fBc\fP.
267 \fB/etc/inittab\fP Ãæ¤Ç¡¢¥é¥ó¥ì¥Ù¥ë \fBa\fP, \fBb\fP, \fBc\fP
268 ¤Î¤¤¤º¤ì¤«¤ò´Þ¤à¥¨¥ó¥È¥ê¤À¤±¤ò¼Â¹Ô¤¹¤ë¤è¤¦ \fBinit\fP ¤ËÅÁ¤¨¤ë¡£
269 .\"O .IP "\fBQ\fP or \fBq\fP"
270 .IP "\fBQ\fP ¤Þ¤¿¤Ï \fBq\fP"
271 .\"O tell \fBinit\fP to re-examine the \fB/etc/inittab\fP file.
272 \fB/etc/inittab\fP ¥Õ¥¡¥¤¥ë¤òÄ´¤Ùľ¤¹¤è¤¦ \fBinit\fP ¤ËÅÁ¤¨¤ë¡£
273 .\"O .IP "\fBS\fP or \fBs\fP"
274 .IP "\fBS\fP ¤Þ¤¿¤Ï \fBs\fP"
275 .\"O tell \fBinit\fP to switch to single user mode.
276 ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤ËÀÚ¤êÂؤ¨¤ë¤è¤¦ \fBinit\fP ¤ËÅÁ¤¨¤ë¡£
277 .\"O .IP "\fBU\fP or \fBu\fP"
278 .IP "\fBU\fP ¤Þ¤¿¤Ï \fBu\fP"
279 .\"O tell \fBinit\fP to re-execute itself (preserving the state). No re-examining of 
280 .\"O \fB/etc/inittab\fP file happens. Run level should be one of \fBSs12345\fP,
281 .\"O otherwise request would be silently ignored.
282 (¾õÂ֤Ϥ½¤Î¤Þ¤Þ¤Ç) ¼«Ê¬¼«¿È¤òºÆ¼Â¹Ô¤¹¤ë¤è¤¦ \fBinit\fP ¤ËÅÁ¤¨¤ë¡£
283 \fB/etc/inittab\fP ¤ÏÄ´¤Ùľ¤µ¤Ê¤¤¡£
284 ¥é¥ó¥ì¥Ù¥ë¤Ï \fBSs12345\fP ¤Î¤¤¤º¤ì¤«¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
285 ¤½¤ì°Ê³°¤Î¾ì¹ç¤Ï¡¢¤³¤ÎÍ×µá¤ÏÌۤäÆ̵»ë¤µ¤ì¤ë¡£
286 .PP
287 .\"O \fBtelinit\fP can also tell \fBinit\fP how long it should wait
288 .\"O between sending processes the SIGTERM and SIGKILL signals.  The default
289 .\"O is 5 seconds, but this can be changed with the \fB-t sec\fP option.
290 \fBinit\fP ¤¬¥×¥í¥»¥¹¤Ë TERM ¥·¥°¥Ê¥ë¤òÁ÷¤Ã¤Æ¤«¤é
291 KILL ¥·¥°¥Ê¥ë¤òÁ÷¤ë¤Þ¤Ç¤Î»þ´Ö¤ò¡¢\fBtelinit\fP ¤«¤é»Ø¼¨¤¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
292 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 5 ÉäËÀßÄꤵ¤ì¤Æ¤¤¤ë¤¬¡¢\fB-t sec\fP ¥ª¥×¥·¥ç¥ó¤ÇÊѹ¹¤Ç¤­¤ë¡£
293 .PP
294 .\"O \fBtelinit\fP can be invoked only by users with appropriate
295 .\"O privileges.
296 \fBtelinit\fP ¤ÏŬÀÚ¤ÊÆø¢¤ò»ý¤Ã¤¿¥æ¡¼¥¶¤Î¤ß¤¬¼Â¹Ô¤Ç¤­¤ë¡£
297 .PP
298 .\"O The \fBinit\fP binary checks if it is \fBinit\fP or \fBtelinit\fP by looking
299 .\"O at its \fIprocess id\fP; the real \fBinit\fP's process id is always \fB1\fP.
300 .\"O From this it follows that instead of calling \fBtelinit\fP one can also
301 .\"O just use \fBinit\fP instead as a shortcut.
302 \fBinit\fP ¤Î¥Ð¥¤¥Ê¥ê¤Ï¡¢¼«Ê¬¤Î \fI¥×¥í¥»¥¹ID\fP ¤ò¸«¤Æ¡¢
303 ¼«Ê¬¤¬ \fBinit\fP ¤Ê¤Î¤« \fBtelinit\fP ¤Ê¤Î¤«¤òȽÃǤ¹¤ë¡£
304 ËÜʪ¤Î \fBinit\fP ¤Î¥×¥í¥»¥¹ ID ¤Ï¾ï¤Ë \fB1\fP ¤Ç¤¢¤ë¡£
305 ¤è¤Ã¤Æ¡¢\fBtelinit\fP ¤òµ¯Æ°¤¹¤ë¤«¤ï¤ê¤Ë \fBinit\fP ¤òµ¯Æ°¤·¤Æ¤â¹½¤ï¤Ê¤¤¡£
306 .\"}}}
307 .\"}}}
308 .\"O .SH ENVIRONMENT
309 .SH ´Ä¶­ÊÑ¿ô
310 .\"O \fBInit\fP sets the following environment variables for all its children:
311 \fBinit\fP ¤Ï»Ò¥×¥í¥»¥¹¤Ë°Ê²¼¤Î¤è¤¦¤Ê´Ä¶­ÊÑ¿ô¤òÀßÄꤹ¤ë:
312 .IP \fBPATH\fP
313 \fI/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin\fP
314 .IP \fBINIT_VERSION\fP
315 .\"O As the name says. Useful to determine if a script runs directly from \fBinit\fP.
316 ̾Á°¤ÎÄ̤ꡣ
317 ¤¢¤ë¥¹¥¯¥ê¥×¥È¤¬ \fBinit\fP
318 ¤Ë¤è¤êľÀܼ¹Ԥµ¤ì¤¿¤Î¤«¤É¤¦¤«¤ò¸«Ê¬¤±¤ë¤Î¤ËÊØÍø¡£
319 .IP \fBRUNLEVEL\fP
320 .\"O The current system runlevel.
321 ¥·¥¹¥Æ¥à¤Î¸½ºß¤Î¥é¥ó¥ì¥Ù¥ë¡£
322 .IP \fBPREVLEVEL\fP
323 .\"O The previous runlevel (useful after a runlevel switch).
324 ľÁ°¤Î¥é¥ó¥ì¥Ù¥ë (¥é¥ó¥ì¥Ù¥ë¤òÊѹ¹¤·¤¿¾ì¹ç¤ËÊØÍø)¡£
325 .IP \fBCONSOLE\fP
326 .\"O The system console. This is really inherited from the kernel; however
327 .\"O if it is not set \fBinit\fP will set it to \fB/dev/console\fP by default.
328 ¥·¥¹¥Æ¥à¥³¥ó¥½¡¼¥ë¡£¤³¤ì¤Ï¼ÂºÝ¤Ï¥«¡¼¥Í¥ë¤«¤é·Ñ¾µ¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
329 ¤·¤«¤·¤³¤ì¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
330 \fBinit\fP ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç \fB/dev/console\fP ¤òÀßÄꤹ¤ë¡£
331 .\"O .SH BOOTFLAGS
332 .SH ¥Ö¡¼¥È¥Õ¥é¥°
333 .\"O It is possible to pass a number of flags to \fBinit\fP from the
334 .\"O boot monitor (eg. LILO). \fBInit\fP accepts the following flags:
335 ¥Ö¡¼¥È¥â¥Ë¥¿ (Î㤨¤Ð LILO) ¤«¤é \fBinit\fP
336 ¤ËÍÍ¡¹¤Ê¥Õ¥é¥°¤òÅϤ¹¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¡£
337 \fBinit\fP ¤Ï°Ê²¼¤Î¤è¤¦¤Ê¥Õ¥é¥°¤ò¼õ¤±ÉÕ¤±¤ë:
338 .TP 0.5i
339 .B -s, S, single
340 .\"O Single user mode boot. In this mode \fI/etc/inittab\fP is
341 .\"O examined and the bootup rc scripts are usually run before
342 .\"O the single user mode shell is started.
343 ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ç¥Ö¡¼¥È¤¹¤ë¡£
344 ¤³¤Î¥â¡¼¥É¤Ç¤Ï \fI/etc/inittab\fP ¤ò»²¾È¤¹¤ë¡£
345 ¤Þ¤¿¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Î¥·¥§¥ë¤¬µ¯Æ°¤µ¤ì¤ëÁ°¤Ë 
346 ¥Ö¡¼¥È¥¢¥Ã¥× rc ¥¹¥¯¥ê¥×¥È¤¬¼Â¹Ô¤µ¤ì¤ë¡£
347 .\"O .PP
348 .TP 0.5i
349 .B 1-5
350 .\"O Runlevel to boot into.
351 ¥Ö¡¼¥È»þ¤ËÆþ¤ë¤Ù¤­¥é¥ó¥ì¥Ù¥ë¡£
352 .\"O .PP
353 .TP 0.5i
354 .B -b, emergency
355 .\"O Boot directly into a single user shell without running any
356 .\"O other startup scripts.
357 ¾¤Îµ¯Æ°ÍÑ¥¹¥¯¥ê¥×¥È¤Ï¼Â¹Ô¤»¤º¡¢
358 ľÀÜ¥·¥ó¥°¥ë¥æ¡¼¥¶¥·¥§¥ë¤Ø¤È¥Ö¡¼¥È¤¹¤ë¡£
359 .\"O .PP
360 .TP 0.5i
361 .B -a, auto
362 .\"O The LILO boot loader adds the word "auto" to the command line if it
363 .\"O booted the kernel with the default command line (without user intervention).
364 .\"O If this is found \fBinit\fP sets the "AUTOBOOT" environment
365 .\"O variable to "yes". Note that you cannot use this for any security
366 .\"O measures - of course the user could specify "auto" or \-a on the
367 .\"O command line manually.
368 LILO ¥Ö¡¼¥È¥í¡¼¥À¤Ï¡¢
369 ¥Ç¥Õ¥©¥ë¥È¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç (¥æ¡¼¥¶¤Î²ðÆþ¤Ê¤·¤Ë)
370 ¥«¡¼¥Í¥ë¤òµ¯Æ°¤¹¤ë¤È¡¢
371 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ëñ¸ì "auto" ¤òÄɲ乤롣
372 \fBinit\fP ¤Ï¤³¤Îñ¸ì¤ò¸«¤Ä¤±¤ë¤È¡¢"AUTOBOOT" ´Ä¶­ÊÑ¿ô¤ò "yes" ¤ËÀßÄꤹ¤ë¡£
373 ¤¿¤À¤·¤³¤Îµ¡Ç½¤ò¥»¥­¥å¥ê¥Æ¥£¤ÎȽÃǤˤϻȤ¨¤Ê¤¤¡£
374 ¤¢¤¿¤ê¤Þ¤¨¤À¤¬¡¢
375 ¥æ¡¼¥¶¡¼¤Ï "auto" ¤ä \-a ¤ò¼êÆ°¤Ç¥³¥Þ¥ó¥É¥é¥¤¥ó¤ËÄɲ乤뤳¤È¤â¤Ç¤­¤ë¡£
376 .\"O .PP
377 .TP 0.5i
378 .B -z xxx
379 .\"O The argument to -z is ignored. You can use this to expand the command
380 .\"O line a bit, so that it takes some more space on the stack. \fBInit\fP
381 .\"O can then manipulate the command line so that \fBps\fP(1) shows
382 .\"O the current runlevel.
383 -z ¤Î°ú¿ô¤Ï̵»ë¤µ¤ì¤ë¡£
384 ¤³¤ì¤ò»È¤¦¤È¥³¥Þ¥ó¥É¥é¥¤¥ó¤¬¾¯¤·Ä¹¤¯¤Ê¤ë¤Î¤Ç¡¢
385 ¤½¤Î¤¿¤á¤Ë¥¹¥¿¥Ã¥¯¤ò¼ã´³Í¾Ê¬¤Ë»ÈÍѤ¹¤ë¤è¤¦¤Ë¤Ê¤ë¡£
386 ¤¹¤ë¤È \fBinit\fP ¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¤òÁàºî¤·¡¢
387 \fBps\fP(1) ¤Ë¸½ºß¤Î¥é¥ó¥ì¥Ù¥ë¤òɽ¼¨¤µ¤»¤ë¤è¤¦¤Ë¤Ç¤­¤ë¡£
388 .\"O .PP
389 .\"O .SH INTERFACE
390 .SH ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹
391 .\"O Init listens on a \fIfifo\fP in /dev, \fI/dev/initctl\fP, for messages.
392 .\"O \fBTelinit\fP uses this to communicate with init. The interface is not
393 .\"O very well documented or finished. Those interested should study the
394 .\"O \fIinitreq.h\fP file in the \fIsrc/\fP subdirectory of the \fBinit\fP
395 .\"O source code tar archive.
396 init ¤Ï¥á¥Ã¥»¡¼¥¸¤Î¤ä¤ê¤È¤ê¤Î¤¿¤á¤Ë¡¢
397 /dev ¤Ë¤¢¤ë FIFO ¤Ç¤¢¤ë \fI/dev/initctl\fP ¤ò listen ¤·¤Æ¤¤¤ë¡£
398 \fBtelinit\fP ¤Ï¤³¤ì¤òÍѤ¤¤Æ init ¤ÈÄÌ¿®¤¹¤ë¡£
399 ¤³¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ï½½Ê¬¤Ëʸ½ñ²½¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
400 ¶½Ì£¤ò»ý¤Ã¤¿¿Í¤Ï¡¢\fBinit\fP ¤Î¥½¡¼¥¹ tar ¥¢¡¼¥«¥¤¥Ö¤Î
401 \fIsrc/\fP ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë
402 \fIinitreq.h\fP ¤òÄ´¤Ù¤Æ¤Û¤·¤¤¡£
403 .\"O .SH SIGNALS
404 .SH ¥·¥°¥Ê¥ë
405 .\"O Init reacts to several signals:
406 init ¤Ï¤¤¤¯¤Ä¤«¤Î¥·¥°¥Ê¥ë¤ËÈ¿±þ¤¹¤ë¡£
407 .TP 0.5i
408 .B SIGHUP
409 .\"O Init looks for
410 .\"O .I /etc/initrunlvl 
411 .\"O and
412 .\"O .I /var/log/initrunlvl.
413 .\"O If one of these files exist and contain an ASCII runlevel, init switches
414 .\"O to the new runlevel. \fI This is for backwards compatibility only! \fP.
415 .\"O In the normal case (the files don't exist) init behaves like \fB telinit q\fP
416 .\"O was executed.
417 init ¤Ï
418 .I /etc/initrunlvl 
419 ¤È
420 .I /var/log/initrunlvl
421 ¤òõ¤¹¡£
422 ¤â¤·¤³¤ì¤é¤Î¤É¤Á¤é¤«¤Î¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¡¢
423 ¥é¥ó¥ì¥Ù¥ë¤¬ ASCII ¥³¡¼¥É¤Ç½ñ¤«¤ì¤Æ¤¤¤¿¤é¡¢
424 init ¤Ï¤½¤Î¥é¥ó¥ì¥Ù¥ë¤ËÀÚ¤êÂؤï¤ë¡£
425 \fI¤³¤ì¤Ï²áµî¤È¤Î¸ß´¹À­¤Î¤¿¤á¤À¤±¤Ë¸ºß¤¹¤ë!\fP
426 Ä̾ï¤Î¾ì¹ç (¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤¬¤Ê¤¤¾ì¹ç)¡¢
427 init ¤Ï \fBtelinit q\fP ¤¬¼Â¹Ô¤µ¤ì¤¿¤È¤­¤ÈƱ¤¸Æ°ºî¤ò¤¹¤ë¡£
428 .\"O .PP
429 .TP 0.5i
430 .B SIGUSR1
431 .\"O On receipt of this signals, init closes and re-opens its control fifo,
432 .\"O \fB/dev/initctl\fP. Useful for bootscripts when /dev is remounted.
433 ¤³¤Î¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤ë¤È¡¢init ¤ÏÀ©¸æÍÑ FIFO ¤Ç¤¢¤ë
434 \fB/dev/initctl\fP ¤ò°ìö¥¯¥í¡¼¥º¤·¤ÆºÆ¥ª¡¼¥×¥ó¤¹¤ë¡£
435 ¥Ö¡¼¥È¥¹¥¯¥ê¥×¥È¤¬ /dev ¤òºÆ¥Þ¥¦¥ó¥È¤·¤¿»þ¤ËÊØÍø¤Ç¤¢¤ë¡£
436 .TP 0.5i
437 .B SIGINT
438 .\"O Normally the kernel sends this signal to init when CTRL-ALT-DEL is
439 .\"O pressed. It activates the \fIctrlaltdel\fP action.
440 Ä̾¥«¡¼¥Í¥ë¤Ï CTRL-ALT-DEL ¤¬²¡¤µ¤ì¤ë¤È¤³¤Î¥·¥°¥Ê¥ë¤ò init ¤ËÁ÷¤ë¡£
441 ¤³¤ì¤Ë¤è¤ê \fIctrlaltdel\fP ¥¢¥¯¥·¥ç¥ó¤¬¼Â¹Ô¤µ¤ì¤ë¡£
442 .TP 0.5i
443 .B SIGWINCH
444 .\"O The kernel sends this signal when the \fIKeyboardSignal\fP key is hit.
445 .\"O It activates the \fIkbrequest\fP action.
446 ¥«¡¼¥Í¥ë¤Ï \fIKeyboardSignal\fP ¥­¡¼¤¬²¡¤µ¤ì¤ë¤È¤³¤Î¥·¥°¥Ê¥ë¤òÁ÷¤ë¡£
447 ¤³¤ì¤Ë¤è¤ê \fIkbrequest\fP ¥¢¥¯¥·¥ç¥ó¤¬¼Â¹Ô¤µ¤ì¤ë¡£
448 .\"O \"{{{  Conforming to
449 .\"O .SH CONFORMING TO
450 .SH ½àµò
451 .\"O \fBInit\fP is compatible with the System V init. It works closely
452 .\"O together with the scripts in the directories
453 .\"O \fI/etc/init.d\fP and \fI/etc/rc{runlevel}.d\fP.
454 .\"O If your system uses this convention, there should be a \fIREADME\fP
455 .\"O file in the directory \fI/etc/init.d\fP explaining how these scripts work.
456 \fBinit\fP ¤Ï System V ¤Î init ¤È¸ß´¹¤Ç¤¢¤ë¡£
457 \fBinit\fP ¤Ï
458 \fI/etc/init.d\fP ¥Ç¥£¥ì¥¯¥È¥ê¤ä \fI/etc/rc{runlevel}.d\fP
459 ¥Ç¥£¥ì¥¯¥È¥ê¤Î¥¹¥¯¥ê¥×¥È¤ÈÌ©ÀܤËÏ¢·¸¤·¤Ê¤¬¤éÆ°ºî¤¹¤ë¡£
460 ¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤¬¤³¤Îµ¬Â§¤Ë½¾¤Ã¤Æ¤¤¤ë¤Ê¤é¡¢
461 \fI/etc/init.d\fP ¥Ç¥£¥ì¥¯¥È¥ê¤Ë \fIREADME\fP ¤¬¤¢¤ê¡¢
462 ¥¹¥¯¥ê¥×¥È¤¬¤É¤Î¤è¤¦¤ËÆ°ºî¤¹¤ë¤«¤¬ÀâÌÀ¤µ¤ì¤Æ¤¤¤ë¤Ï¤º¤Ç¤¢¤ë¡£
463 .\"}}}
464 .\"{{{  Files
465 .\"O .SH FILES
466 .SH ¥Õ¥¡¥¤¥ë
467 .nf
468 /etc/inittab
469 /etc/initscript
470 /dev/console
471 /etc/ioctl.save
472 /var/run/utmp
473 /var/log/wtmp
474 /dev/initctl
475 .fi
476 .\"}}}
477 .\"{{{  Warnings
478 .\"O .SH WARNINGS
479 .SH ·Ù¹ð
480 .\"O \fBInit\fP assumes that processes and descendants of processes
481 .\"O remain in the same process group which was originally created
482 .\"O for them.  If the processes change their group, \fBinit\fP can't
483 .\"O kill them and you may end up with two processes reading from one
484 .\"O terminal line.
485 \fBinit\fP ¤Ï¡¢
486 À¸À®¤·¤¿¥×¥í¥»¥¹¤È¤½¤Î»Ò¹¤È¤¬¡¢
487 ¤½¤ì¤é¤Î¤¿¤á¤Ëºî¤Ã¤¿¥×¥í¥»¥¹¥°¥ë¡¼¥×¤Ëα¤Þ¤Ã¤Æ¤¤¤ë¤È²¾Äꤷ¤Æ¤¤¤ë¡£
488 ¥×¥í¥»¥¹¥°¥ë¡¼¥×¤¬¸µ¡¹¤Î¤â¤Î¤ÈÊѤï¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
489 \fBinit\fP ¤Ï¤½¤Î¥×¥í¥»¥¹¤ò kill ¤Ç¤­¤Ê¤¤¤Î¤Ç¡¢
490 °Û¤Ê¤ëÆó¤Ä¤Î¥×¥í¥»¥¹¤¬Æ±°ì¤ÎüËö¥é¥¤¥ó¤«¤éÆþÎϤòÆɤ߹þ¤à¡¢
491 ¤È¤¤¤Ã¤¿¸½¾Ý¤¬µ¯¤­¤Æ¤·¤Þ¤¦²ÄǽÀ­¤¬¤¢¤ë¡£
492 .\"}}}
493 .\"{{{  Diagnostics
494 .\"O .SH DIAGNOSTICS
495 .SH ÊÖ¤êÃÍ
496 .\"O If \fBinit\fP finds that it is continuously respawning an entry
497 .\"O more than 10 times in 2 minutes, it will assume that there is an error
498 .\"O in the command string, generate an error message on the system console,
499 .\"O and refuse to respawn this entry until either 5 minutes has elapsed or
500 .\"O it receives a signal.  This prevents it from eating up system resources
501 .\"O when someone makes a typographical error in the \fB/etc/inittab\fP file
502 .\"O or the program for the entry is removed.
503 \fBinit\fP ¤Ï¡¢¤¢¤ë¥¨¥ó¥È¥ê¤¬ 2 Ê¬´Ö¤Ë
504 10 ²ó°Ê¾å·«¤êÊÖ¤·¤ÆºÆÀ¸À®¤µ¤ì¤ë¤Î¤òȯ¸«¤¹¤ë¤È¡¢
505 ¥³¥Þ¥ó¥Éʸ»úÎó¤Ë¸í¤ê¤¬¤¢¤ë¤È¤ß¤Ê¤·¡¢
506 ¥·¥¹¥Æ¥à¥³¥ó¥½¡¼¥ë¤Ë¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤·¡¢
507 5 Ê¬°Ê¾å·Ð²á¤¹¤ë¤«¥·¥°¥Ê¥ë¤ò¼õ¤±¼è¤ë¤Þ¤Ç¡¢
508 ¤½¤ì°Ê¾å¤½¤Î¥¨¥ó¥È¥ê¤ÎºÆÀ¸À®¤òµñÈݤ¹¤ë¡£
509 ¤³¤¦¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢\fB/etc/inittab\fP Ãæ¤Ë½ñ¤­´Ö°ã¤¤¤¬¤¢¤Ã¤¿¤ê¡¢
510 ¤½¤Î¥¨¥ó¥È¥ê¤Ç»ÈÍѤ¹¤ë¥×¥í¥°¥é¥à¤¬ºï½ü¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¡¢
511 ¥·¥¹¥Æ¥à»ñ¸»¤ò»È¤¤¿Ô¤¯¤·¤Æ¤·¤Þ¤¦¤³¤È¤òËɤ¤¤Ç¤¤¤ë¡£
512 .\"}}}
513 .\"{{{  Author
514 .\"O .SH AUTHOR
515 .SH Ãø¼Ô
516 .\"O Miquel van Smoorenburg (miquels@cistron.nl), initial manual
517 .\"O page by Michael Haardt (u31b3hs@pool.informatik.rwth-aachen.de).
518 Miquel van Smoorenburg (miquels@cistron.nl)¡£
519 ¤â¤È¤Î man ¥Ú¡¼¥¸¤Ï
520 Michael Haardt (u31b3hs@pool.informatik.rwth-aachen.de) ¤Ë¤è¤ë¡£
521 .\"}}}
522 .\"{{{  See also
523 .\"O .SH "SEE ALSO"
524 .SH ´ØÏ¢¹àÌÜ
525 .BR getty (1),
526 .BR login (1),
527 .BR sh (1),
528 .BR runlevel (8),
529 .BR shutdown(8),
530 .BR kill (1),
531 .BR inittab (5),
532 .BR initscript (5),
533 .BR utmp (5)
534 .\"}}}