aboutsummaryrefslogtreecommitdiff
path: root/sbin/reboot/reboot.8
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-10-25 15:30:35 +0000
committerWarner Losh <imp@FreeBSD.org>2017-10-25 15:30:35 +0000
commit7d7d9013f1fd4bba8a6993ae09e18c1a56c99373 (patch)
tree2dcdce5e7d15925d0da62a122dd6c2a7d1da1553 /sbin/reboot/reboot.8
parente60baa725230ed256b04bfe82488ae46fa770a5c (diff)
downloadsrc-7d7d9013f1fd4bba8a6993ae09e18c1a56c99373.tar.gz
src-7d7d9013f1fd4bba8a6993ae09e18c1a56c99373.zip
Add power cycle support to reboot/halt as -c.
When -c is specified, the system will be power cycled if the underlying hardware supports it. Otherwise the system will be halted or rebooted depending on which command was used. Sponsored by: Netflix
Notes
Notes: svn path=/head/; revision=324986
Diffstat (limited to 'sbin/reboot/reboot.8')
-rw-r--r--sbin/reboot/reboot.819
1 files changed, 17 insertions, 2 deletions
diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8
index c31f9663a88f..6f2d023e8bb9 100644
--- a/sbin/reboot/reboot.8
+++ b/sbin/reboot/reboot.8
@@ -28,7 +28,7 @@
.\" @(#)reboot.8 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd March 19, 2017
+.Dd October 23, 2017
.Dt REBOOT 8
.Os
.Sh NAME
@@ -42,7 +42,7 @@
.Op Fl lNnpq
.Op Fl k Ar kernel
.Nm
-.Op Fl dlNnpqr
+.Op Fl cdlNnpqr
.Op Fl k Ar kernel
.Nm fasthalt
.Op Fl lNnpq
@@ -66,6 +66,20 @@ accounting database.
.Pp
The options are as follows:
.Bl -tag -width indent
+.It Fl c
+The system will turn off the power and then turn it back on if it can.
+If the power down action fails, the system
+will halt or reboot normally, depending on whether
+.Nm halt
+or
+.Nm
+was called.
+At the present time, only the
+.Xr ipmi 4
+driver implements the power cycle functionality and only on hardware
+with a BMC that supports power cycling.
+Unlike power off, the amount of hardware that supports power cycling
+is small.
.It Fl d
The system is requested to create a crash dump.
This option is
@@ -162,6 +176,7 @@ reboot -r
.Sh SEE ALSO
.Xr kenv 1 ,
.Xr getutxent 3 ,
+.Xr ipmi 4 ,
.Xr boot 8 ,
.Xr dumpon 8 ,
.Xr nextboot 8 ,