OSDN Git Service

03443e0de2164e55e7736d32da913e30942cadab
[linuxjm/jm.git] / manual / util-linux / draft / man8 / shutdown.8
1 .\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu)
2 .\" May be distributed under the GNU General Public License
3 .\"
4 .\" Japanese Version Copyright (c) 1997 NAKANO Takeo all rights reserved.
5 .\" Translated Thu Sep 1 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
6 .\" Updated & Modified Thu 7 Oct 1999 by NAKANO Takeo 
7 .\" Updated & Modified Wed 14 Jun 2000 by NAKANO Takeo 
8 .\" 
9 .TH SHUTDOWN 8 "2 March 2000" "Linux 2.0" "Linux Programmer's Manual"
10 .\"O .SH NAME
11 .\"O shutdown \- close down the system
12 .SH 名前
13 shutdown \- システムを閉じて終了させる
14 .\"O .SH SYNOPSIS
15 .SH 書式
16 .nf
17 .BR "shutdown [ \-h | \-r ] [ \-fqs ] [ now | " hh:ss " | " +mins " ] [ " message " ]"
18 .BR "reboot [ \-h | \-r ] [ \-fqs ] [ now | " hh:ss " | " +mins " ] [ " message " ]"
19 .BR "fastboot [ \-h | \-r ] [ \-fqs ] [ now | " hh:ss " | " +mins " ] [ " message " ]"
20 .BR "halt [ \-h | \-r ] [ \-fqs ] [ now | " hh:ss " | " +mins " ] [ " message " ]"
21 .BR "fasthalt [ \-h | \-r ] [ \-fqs ] [ now | " hh:ss " | " +mins " ] [ " message " ]"
22 .fi
23 .\"O .SH DESCRIPTION
24 .SH 説明
25 .\" " for emacs hilit19
26 .\"O In general,
27 .\"O .B shutdown
28 .\"O prepares the system for a power down or reboot.  A absolute or delta time
29 .\"O can be given, and periodic messages will be sent to all users warning of
30 .\"O the shutdown. If no message is specified on the command line,
31 .\"O .B shutdown
32 .\"O will ask for a message to be sent, unless the 
33 .\"O .B \-q
34 .\"O option is set.
35 .B shutdown
36 はシステムの電源停止やリブートの準備をする。いつ停止するかを、時刻また
37 は現在からの待ち時間で指定できる。すべてのユーザーに、シャットダウンの
38 警告メッセージが送られる。コマンドラインでメッセージが指定されなかった
39 場合には、
40 .B shutdown
41 は送信するメッセージを尋ねてくる。ただし
42 .B \-q
43 オプションをセットした場合には尋ねない。
44
45 .\"O .B halt
46 .\"O is the same as
47 .\"O .B "shutdown -h -q now"
48 .B halt
49
50 .B "shutdown -h -q now"
51 と同じ。
52
53 .\"O .B fasthalt
54 .\"O is the same as
55 .\"O .B "shutdown -h -q -f now"
56 .B fasthalt
57
58 .B "shutdown -h -q -f now"
59 と同じ。
60
61 .\"O .B reboot
62 .\"O is the same as
63 .\"O .B "shutdown -r -q now"
64 .B reboot
65
66 .B "shutdown -r -q now"
67 と同じ。
68
69 .\"O .B fastboot
70 .\"O is the same as
71 .\"O .B "shutdown -r -q -f now"
72 .B fastboot
73
74 .B "shutdown -r -q -f now"
75 と同じ。
76
77 .\"O The default delta time, if none is specified, is 2 minutes.
78 何も指定されなかった場合、デフォルトの待ち時間は 2 分になる。
79
80 .\"O Five minutes before shutdown (or immediately, if shutdown is less than five
81 .\"O minutes away), the
82 .\"O .I /etc/nologin
83 .\"O file is created with a message stating that the system is going down and
84 .\"O that logins are no longer permitted.  The
85 .\"O .B login (1)
86 .\"O program will not allow non-superusers to login during this period.  A
87 .\"O message will be sent to all users at this time.
88 シャットダウンの 5 分前に (あるいはシャットダウンが 5 分以内に行われる
89 場合には直ちに)、
90 .I /etc/nologin
91 ファイルが作成され、「システムがダウンするのでログインはできない」旨の
92 メッセージが書き込まれる。
93 .BR login (1)
94 プログラムはこれ以降、スーパーユーザー以外のログインを許可しない。また
95 このとき、すべてのユーザーにメッセージが送信される。
96
97 .\"O When the shutdown time arrives,
98 .\"O .B shutdown
99 .\"O notifies all users, tells
100 .\"O .BR init (8)
101 .\"O not to spawn more
102 .\"O .BR getty (8)'s,
103 .\"O writes the shutdown time into the
104 .\"O .I /var/log/wtmp
105 .\"O file, kills all other processes on the system,
106 .\"O .BR sync (2)'s,
107 .\"O unmounts all the disks,
108 .\"O .BR sync (2)'s
109 .\"O again, waits for a second, and then either terminates or reboots the
110 .\"O system.
111 シャットダウンの時間になると、
112 .B shutdown
113 はすべてのユーザーに通知を出し、
114 以降
115 .BR getty (8)
116 プロセスを再生成 (spawn) しないように
117 .BR init (8)
118 に伝える。
119 その後
120 .I /var/log/wtmp
121 ファイルにシャットダウンの時間を書き込み、
122 他のすべてのプロセスを kill し、
123 .BR sync (2)
124 を実行してすべてのディスクをアンマウントし、再び
125 .BR sync (2)
126 を実行、少し待ってシステムを終了させるかリブートさせる。
127
128 .\"O Prior to unmounting all discs, the \fBSIGQUIT\fP signal is sent to the
129 .\"O \fBinit\fP process, which will in turn exec \fBshutdown\fP(8). This
130 .\"O allows for clean unmounting, even if the old inode for the \fBinit\fP
131 .\"O process was unlinked. If the current process ID (PID) equals 1, then
132 .\"O \fBshutdown\fP(8) will pause forever.
133 全てのディスクのアンマウントに先立ち、
134 .B SIGQUIT
135 シグナルが
136 .B init
137 プロセスに送られ、これによって
138 .BR shutdown (8)
139 が起動される。こうすれば、
140 .B init
141 の古い inode が unlink された場合でもクリーンにアンマウントを行うことができる。
142 カレントのプロセス ID (PID) が 1 の場合は、
143 .BR shutdown (8)
144 は永久に停止する。
145 .\"O .SH OPTIONS
146 .SH オプション
147 .TP
148 .B \-h
149 .\"O Halt the system.  Do not reboot.  This option is used when powering down
150 .\"O the system.
151 システムを停止 (halt) する。リブートしない。
152 このオプションはシステムの電源を落とすときに用いられる。
153 .TP
154 .B \-r
155 .\"O Reboot the system.
156 システムをリブートする。
157 .TP
158 .B \-f
159 .\"O Fast.  When the system is rebooted, the file systems will not be checked.
160 .\"O This is arranged by creating
161 .\"O .IR /fastboot ,
162 .\"O which
163 .\"O .I /etc/rc
164 .\"O must detect (and delete).
165 高速指定。システムがリブートするとき、
166 ファイルシステムをチェックしないようにする。
167 具体的には
168 .I /fastboot
169 を作成する。このファイルは
170 .I /etc/rc
171 によって検知(および消去)されるようになっていなければならない。
172 .TP
173 .B \-q
174 .\"O Quiet.  This uses a default broadcast message, and does not prompt the user
175 .\"O for one.
176 メッセージ抑制。このオプションが指定されるとデフォルトのブロードキャス
177 トメッセージが用いられる。メッセージの入力を求めるプロンプトをユーザー
178 に出さない。
179 .TP
180 .B \-s
181 .\"O Reboot in single user mode.  This is arranged by creating
182 .\"O .IR /etc/singleboot ,
183 .\"O which
184 .\"O .BR simpleinit (8)
185 .\"O detects (and deletes).
186 シングルユーザーモードでリブートする。
187 具体的には
188 .I /etc/singleboot
189 を作成する。このファイルは
190 .BR simpleinit (8)
191 によって検知(および消去)されるようになっていなければならない。
192 .\"O .SH FILES
193 .SH ファイル
194 .nf
195 .I /etc/rc
196 .I /fastboot
197 .I /etc/singleboot
198 .I /etc/nologin
199 .I /var/log/wtmp
200 .I /etc/shutdown.conf
201 .fi
202 .\"O .SH CONFIG
203 .SH 設定
204 .\"O The configuration file \fI/etc/shutdown.conf\fP is used to determine
205 .\"O the action to take when halting the machine. The currently supported
206 .\"O file format is extremely primitive. The first line must contain two
207 .\"O strings separated by whitespace. The first string must be
208 .\"O \fBHALT_ACTION\fP and the second specifies the action you wish to take
209 .\"O on halt. The options allowed are:
210 設定ファイル \fI/etc/shutdown.conf\fP を用いれば
211 マシンを停止するときの動作を決定することができる。
212 現在サポートされているファイル形式は非常に単純なものである。
213 第一行には空白で区切った二つの文字列を記述する。
214 最初の文字列は \fBHALT_ACTION\fP とし、第二の文字列には
215 停止時の動作を指定する。以下のオプションが適用できる。
216 .TP
217 .B halt
218 .\"O This will simply halt the system. This is the default behaviour.
219 .\"O Note also that this is the fallback if another option fails.
220 単にシステムを停止する。デフォルトの動作である。
221 他のオプションが失敗した場合にもこの動作が行われる。
222 .TP
223 .B power_off
224 .\"O This will use the kernel power shutdown facility. This is usually only
225 .\"O available on machines with Advanced Power Management (APM).
226 カーネルの電源断機能を利用しようとする。
227 APM (Advanced Power Management) 機能のあるマシンでのみ利用できる。
228 .TP
229 .I programname
230 .\"O This specifies a command to run to shut down the power. The first
231 .\"O character must be a "/". Bear in mind that this command will be run
232 .\"O with only the root filesystem mounted (and it will be read-only), and
233 .\"O no daemons running.
234 電源を切るために動作させるコマンドを指定する。
235 最初の文字は "/" でなければならない。
236 このコマンドはルートファイルシステムだけで (かつリードオンリーで)、
237 さらにデーモンがない状態で動作する必要がある。
238 .\"O .SH "SEE ALSO"
239 .SH 関連項目
240 .BR umount (8),
241 .BR login (1),
242 .BR reboot (2),
243 .BR simpleinit (8),
244 .BR init (8)
245 .\"O .SH BUGS
246 .SH バグ
247 .\"O Unlike the BSD
248 .\"O .BR shutdown ,
249 .\"O users are notified of shutdown only once or twice, instead of many times,
250 .\"O and at shorter and shorter intervals as "apocalypse approaches."
251 .\"O Some would construe this as a feature.
252 BSD 版の
253 .BR shutdown
254 と異なり、ユーザーはシャットダウンの通知を一度または二度しか受け取らない。
255 BSD 版ではこの通知は何度も、しかも「黙示のとき」が近づくにつれ、
256 ますます頻繁に発送される。
257 これを仕様であるとみなしている人もいるかもしれない。
258 .\"O .SH AUTHOR
259 .SH 著者
260 .\"O This page documents the version of
261 .\"O .B shutdown
262 .\"O originally written by Peter Orbaek (poe@daimi.aau.dk).
263 このページは、
264 Peter Orbaek (poe@daimi.aau.dk)
265 によって書かれた
266 .B shutdown
267 の解説である。