1 .\" This page is originally in the SysVinit package.
3 .\" Translated Fri 14 Feb 1997
4 .\" by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
5 .\" Updated Sat 6 May 2000 by Kentaro Shirakata <argrath@ub32.org>
6 .\" Updated Thu 26 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
10 .TH HALT 8 "Nov 6, 2001" "" "Linux System Administrator's Manual"
14 .\"O halt, reboot, poweroff \- stop the system.
16 halt, reboot, poweroff \- ¥·¥¹¥Æ¥à¤òÄä»ß¤¹¤ë
48 .\"O \fBHalt\fP notes that the system is being brought down in the file
49 .\"O \fI/var/log/wtmp\fP, and then either tells the kernel to halt, reboot or
50 .\"O poweroff the system.
51 \fBhalt\fP¤Ï¡¢¥·¥¹¥Æ¥à¤Î½ªÎ»¤ò \fI/var/log/wtmp\fP ¥Õ¥¡¥¤¥ë¤ËµÏ¿¤·¡¢
52 ¥«¡¼¥Í¥ë¤Ë¥·¥¹¥Æ¥à¤ÎÄä»ß (halt)¡¢ºÆµ¯Æ° (reboot)¡¢
53 ÅŸ»ÃÇ (poweroff) ¤Î¤¤¤º¤ì¤«¤ò¹Ô¤¦¤è¤¦Ì¿Î᤹¤ë¡£
54 (ÌõÃí: reboot, poweroff ¤Ï halt ¤Ø¤Î¥ê¥ó¥¯¤Ç¤¢¤ê¡¢
55 Æ°ºî¤Ï¤É¤Î̾Á°¤Çµ¯Æ°¤·¤¿¤«¤Ë¤è¤Ã¤Æ·è¤Þ¤ë¡£)
57 .\"O If \fBhalt\fP or \fBreboot\fP is called when the system is
58 .\"O \fInot\fP in runlevel \fB0\fP or \fB6\fP, in other words when it's running
59 .\"O normally, \fBshutdown\fP will be invoked instead (with the \fB-h\fP
60 .\"O or \fB-r\fP flag). For more info see the \fBshutdown\fP(8)
62 ¥·¥¹¥Æ¥à¤Î¥é¥ó¥ì¥Ù¥ë¤¬ \fB0\fP ¤Þ¤¿¤Ï \fB6\fP ¤Ç¤Ê¤¤¤È¤¤Ë¡¢
63 ¤¹¤Ê¤ï¤Á¥·¥¹¥Æ¥à¤¬Ä̾ï¤ËÆ°ºî¤·¤Æ¤¤¤ë¤È¤¤Ë
64 \fBhalt\fP ¤ä \fBreboot\fP ¤¬¸Æ¤Ó½Ð¤µ¤ì¤ë¤È¡¢
65 Âå¤ï¤ê¤Ë \fBshutdown\fP(8) ¤¬
66 (\fB-h\fP ¤ä \fB-r\fP ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æ) µ¯Æ°¤µ¤ì¤ë¡£
69 ¤Î man ¥Ú¡¼¥¸¤ò»²¾È¤Î¤³¤È¡£
71 .\"O The rest of this manpage describes the behaviour in runlevels 0
72 .\"O and 6, that is when the systems shutdown scripts are being run.
73 ¤³¤Î man ¥Ú¡¼¥¸¤Ç¤Ï¥é¥ó¥ì¥Ù¥ë 0 ¤ª¤è¤Ó 6¡¢
74 ¤¹¤Ê¤ï¤Á¥·¥¹¥Æ¥à¤Î¥·¥ã¥Ã¥È¥À¥¦¥ó¥¹¥¯¥ê¥×¥È¤¬Æ°ºîÃæ¤Î¾ì¹ç
75 ¤Ë¤ª¤±¤ë¿¶Éñ¤¤¤òÀâÌÀ¤¹¤ë¡£
81 .\"O Don't sync before reboot or halt.
82 ºÆµ¯Æ°¤Þ¤¿¤ÏÄä»ß¤¹¤ëÁ°¤Ë sync ¤·¤Ê¤¤¡£
84 .\"O Don't actually reboot or halt but only write the wtmp record
85 .\"O (in the \fI/var/log/wtmp\fP file).
86 ¼ÂºÝ¤Ë¤ÏºÆµ¯Æ°¤Þ¤¿¤ÏÄä»ß¤»¤º¤Ë¡¢
87 wtmp¥ì¥³¡¼¥É (\fI/var/log/wtmp\fP ¥Õ¥¡¥¤¥ë) ¤Ø¤ÎµÏ¿¤Î¤ß¤ò¹Ô¤¦¡£
89 .\"O Don't write the wtmp record. The \fB\-n\fP flag implies \fB\-d\fP.
90 wtmp¥ì¥³¡¼¥É¤Ø¤ÎµÏ¿¤ò¹Ô¤ï¤Ê¤¤¡£
91 \fB\-n\fP ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¤Ï¡¢
92 ¼«Æ°Åª¤Ë \fB\-d\fP ¥ª¥×¥·¥ç¥ó¤âÉÕ¤±¤é¤ì¤ë¡£
94 .\"O Force halt or reboot, don't call \fBshutdown\fP(8).
95 \fBshutdown\fP(8) ¤òµ¯Æ°¤»¤º¡¢¶¯À©Åª¤Ë halt ¤Þ¤¿¤Ï reboot ¤¹¤ë¡£
97 .\"O Shut down all network interfaces just before halt or reboot.
98 Ää»ß¤Þ¤¿¤ÏºÆµ¯Æ°¤¹¤ëľÁ°¤Ë
99 Á´¤Æ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤òÀÚÃǤ¹¤ë¡£
101 .\"O Put all harddrives on the system in standby mode just before halt or poweroff.
102 Ää»ß¤Þ¤¿¤ÏºÆµ¯Æ°¤¹¤ëľÁ°¤Ë¥·¥¹¥Æ¥à¤Î¤¹¤Ù¤Æ¤Î¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤ò
103 standby ¥â¡¼¥É¤Ë¤¹¤ë¡£
105 .\"O When halting the system, do a poweroff. This is the default when halt is
106 .\"O called as \fBpoweroff\fP.
107 ¥·¥¹¥Æ¥à¤òÄä»ß¤¹¤ë»þ¤Ë¡¢ÅŸ»¤òÀڤ롣
108 halt ¤¬ \fBpoweroff\fP ¤È¤¤¤¦Ì¾Á°¤Çµ¯Æ°¤µ¤ì¤¿»þ¤Ï¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¤¢¤ë¡£
113 .\"O If you're not the superuser, you will get the message `must be superuser'.
114 ¥¹¡¼¥Ñ¡¼¥æ¡¼¥¶¤Ç¤Ê¤¤¿Í¤¬ÍѤ¤¤¿¾ì¹ç¤Ï `must be superuser'
115 ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤ë¡£
120 .\"O Under older \fBsysvinit\fP releases , \fBreboot\fP and \fBhalt\fP should
121 .\"O never be called directly. From release 2.74 on \fBhalt\fP and \fBreboot\fP
122 .\"O invoke \fBshutdown\fP(8) if the system is not in runlevel 0 or 6. This
123 .\"O means that if \fBhalt\fP or \fBreboot\fP cannot find out the current
124 .\"O runlevel (for example, when \fI/var/run/utmp\fP hasn't been initialized
125 .\"O correctly) \fBshutdown\fP will be called, which might not be what you want.
126 .\"O Use the \fB-f\fP flag if you want to do a hard \fBhalt\fP or \fBreboot\fP.
127 ¸Å¤¤ÈǤΠ\fBsysvinit\fP ¤Ç¤Ï¡¢
128 \fBreboot\fP ¤ä \fBhalt\fP ¤òľÀܸƤӽФ·¤Æ¤Ï¤Ê¤é¤Ê¤«¤Ã¤¿¡£
129 2.74 ÈǤ«¤é¤Ï¡¢¥·¥¹¥Æ¥à¤Î¥é¥ó¥ì¥Ù¥ë¤¬ 0 ¤« 6 ¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï
130 \fBhalt\fP ¤ä \fBreboot\fP ¤Ï \fIshutdown\fP ¤òµ¯Æ°¤¹¤ë¡£
132 \fBhalt\fP ¤ä \fBreboot\fP ¤¬¸½ºß¤Î¥é¥ó¥ì¥Ù¥ë¤òǧ¼±¤Ç¤¤Ê¤¤¾ì¹ç
133 (Î㤨¤Ð \fI/var/run/utmp\fP ¤¬Àµ¤·¤¯½é´ü²½¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç) ¤Ë¤Ï
134 \fBshutdown\fP ¤¬µ¯Æ°¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ë¤¬¡¢
135 ¤³¤ì¤Ï˾¤àÆ°ºî¤È¤Ï°Û¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
136 ¶¯À©Åª¤Ë \fBhalt\fP ¤ä \fBreboot\fP ¤ò¼Â¹Ô¤·¤¿¤¤»þ¤Ë¤Ï
137 \fB-f\fP ¥ª¥×¥·¥ç¥ó¤ò»È¤¦¤³¤È¡£
139 .\"O The \fB-h\fP flag puts all harddisks in standby mode just before halt
140 .\"O or poweroff. Right now this is only implemented for IDE drives. A side
141 .\"O effect of putting the drive in standby mode is that the write cache
142 .\"O on the disk is flushed. This is important for IDE drives, since the
143 .\"O kernel doesn't flush the write-cache itself before poweroff.
144 \fB-h\fP ¥ª¥×¥·¥ç¥ó¤ÏÄä»ß¤Þ¤¿¤ÏÅŸ»ÃǤÎľÁ°¤Ë¤¹¤Ù¤Æ¤Î¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤ò
145 standby ¥â¡¼¥É¤Ë¤¹¤ë¡£
146 ¸½ºß¤Ç¤Ï¤³¤Îµ¡Ç½¤Ï IDE ¥É¥é¥¤¥Ö¤ËÂФ·¤Æ¤Î¤ß¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¡£
147 ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤ò standby ¥â¡¼¥É¤Ë¤¹¤ë¤È¡¢
148 ÉûºîÍѤȤ·¤Æ¥Ç¥£¥¹¥¯¤Î write ¥¥ã¥Ã¥·¥å¤¬¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£
149 ¤³¤ì¤Ï IDE ¥É¥é¥¤¥Ö¤Ç¤Ï½ÅÍפʤ³¤È¤Ê¤Î¤Ç¤¢¤ë¡£
150 ¥«¡¼¥Í¥ë¼«¿È¤ÏÅŸ»ÃǤÎÁ°¤Ë
151 write ¥¥ã¥Ã¥·¥å¤Î¥Õ¥é¥Ã¥·¥å¤ò¹Ô¤ï¤Ê¤¤¤«¤é¤Ç¤¢¤ë¡£
153 .\"O The \fBhalt\fP program uses /proc/ide/hd* to find all IDE disk devices,
154 .\"O which means that /proc needs to be mounted when \fBhalt\fP or
155 .\"O \fBpoweroff\fP is called or the \fB-h\fP switch will do nothing.
156 \fBhalt\fP ¥×¥í¥°¥é¥à¤Ï¤¹¤Ù¤Æ¤Î IDE ¥Ç¥£¥¹¥¯¥Ç¥Ð¥¤¥¹¤ò¸¡º÷¤¹¤ë¤¿¤á¡¢
157 /proc/ide/hd* ¤òÍѤ¤¤ë¡£
158 ¤¹¤Ê¤ï¤Á \fBhalt\fP ¤ä \fBpoweroff\fP ¤ò¸Æ¤Ö¤È¤¤Ë¤Ï
159 /proc ¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ëɬÍפ¬¤¢¤ë¡£
160 ¤µ¤â¤Ê¤¤¤È \fB-h\fP ¥ª¥×¥·¥ç¥ó¤Ï²¿¤â¤·¤Ê¤¤¡£
166 Miquel van Smoorenburg, miquels@cistron.nl