Usage: halt [OPTION]...
Halt the system.
Options:
-n, --no-sync don't sync before reboot or halt
-f, --force force reboot or halt, don't call shutdown(8)
-p, --poweroff switch off the power when called as halt
-w, --wtmp-only don't actually reboot or halt, just write wtmp
record
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit
This command is intended to instruct the kernel to reboot or halt the system;
when run without the -f option, or when in a system runlevel other than 0 or 6,
it will actually execute /sbin/shutdown.
Report bugs at
Usage: halt [OPTION]...
Halt the system.
Options:
-n, --no-sync don't sync before reboot or halt
-f, --force force reboot or halt, don't call shutdown(8)
-p, --poweroff switch off the power when called as halt
-w, --wtmp-only don't actually reboot or halt, just write wtmp
record
-q, --quiet reduce output to errors only
-v, --verbose increase output to include informational messages
--help display this help and exit
--version output version information and exit
This command is intended to instruct the kernel to reboot or halt the system;
when run without the -f option, or when in a system runlevel other than 0 or 6,
it will actually execute /sbin/shutdown.
Report bugs at
reboot(8) reboot(8)
名前
reboot, halt, poweroff - システムの停止または再起動をする
書式
reboot [OPTION]...
halt [OPTION]...
poweroff [OPTION]...
説明
こ れ ら の プ ロ グラムはシステム管理者へシステムの 再起動(reboot), 停
止(halt) あるいは 電源断(poweroff) を許可する。
--force オプションと共に呼び出した場合、あるいはランレベル 0 もしくは 6
で呼び出した場合に、このツールは reboot(2) システムコール自身を呼び、シ
ステムを直接再起動する。さもなければ単に適切な引数と共に shutdown(8) ツ
ールを呼び出す。
reboot(2) を呼び出す前に、システム停止の記録を最初に /var/log/wtmp へ書
き込む。
オプション
-f, --force
shutdown(8) を呼び出さず代わりに名前から期待する実際の動作を遂行
する。
-p, --poweroff
電源断(poweroff) として振る舞うように halt コマンドに指示する。
-w, --wtmp-only
shutdown(8) あるいは reboot(2) を呼ばずに、システム停止の記録だ
けを /var/log/wtmp に書きだす。
--verbose
再起動時に若干多くの冗長なメッセージを出力する。シャットダウンで
の問題のデバックに役立つ。
環境変数
RUNLEVEL
も し この環境変数が設定されている場合、 reboot は /var/run/utmp
からの読み込みよりも優先して現在のランレベルをこの環境変数から読
み込む。
ファイル
/var/run/utmp
このファイルより現在のランレベルが読み込まれる; システム停止の記
録によって置き換えられるランレベルの記録と共に更新される。
/var/log/wtmp
システム停止時の新しいランレベルの記録はこのファイルへ追加される
。
著者
Scott James Remnant
reboot(8) reboot(8)
NAME
reboot, halt, poweroff - reboot or stop the system
SYNOPSIS
reboot [OPTION]...
halt [OPTION]...
poweroff [OPTION]...
DESCRIPTION
These programs allow a system administrator to reboot, halt or poweroff
the system.
When called with --force or when in runlevel 0 or 6, this tool invokes
the reboot(2) system call itself and directly reboots the system. Oth-
erwise this simply invokes the shutdown(8) tool with the appropriate
arguments.
Before invoking reboot(2), a shutdown time record is first written to
/var/log/wtmp
OPTIONS
-f, --force
Does not invoke shutdown(8) and instead performs the actual
action you would expect from the name.
-p, --poweroff
Instructs the halt command to instead behave as poweroff.
-w, --wtmp-only
Does not call shutdown(8) or the reboot(2) system call and
instead only writes the shutdown record to /var/log/wtmp
--verbose
Outputs slightly more verbose messages when rebooting, useful
for debugging problems with shutdown.
ENVIRONMENT
RUNLEVEL
reboot will read the current runlevel from this environment
variable if set in preference to reading from /var/run/utmp
FILES
/var/run/utmp
Where the current runlevel will be read from; this file will
also be updated with the runlevel record being replaced by a
shutdown time record.
/var/log/wtmp
A new runlevel record for the shutdown time will be appended to
this file.
AUTHOR
Written by Scott James Remnant
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa