Changeset View
Changeset View
Standalone View
Standalone View
sbin/reboot/reboot.8
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)reboot.8 8.1 (Berkeley) 6/9/93 | .\" @(#)reboot.8 8.1 (Berkeley) 6/9/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd March 19, 2017 | .Dd October 23, 2017 | ||||
.Dt REBOOT 8 | .Dt REBOOT 8 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm reboot , | .Nm reboot , | ||||
.Nm halt , | .Nm halt , | ||||
.Nm fastboot , | .Nm fastboot , | ||||
.Nm fasthalt | .Nm fasthalt | ||||
.Nd stopping and restarting the system | .Nd stopping and restarting the system | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm halt | .Nm halt | ||||
.Op Fl lNnpq | .Op Fl lNnpq | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Nm | .Nm | ||||
.Op Fl dlNnpqr | .Op Fl cdlNnpqr | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Nm fasthalt | .Nm fasthalt | ||||
.Op Fl lNnpq | .Op Fl lNnpq | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Nm fastboot | .Nm fastboot | ||||
.Op Fl dlNnpq | .Op Fl dlNnpq | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm halt | .Nm halt | ||||
and | and | ||||
.Nm | .Nm | ||||
utilities flush the file system cache to disk, send all running processes | utilities flush the file system cache to disk, send all running processes | ||||
a | a | ||||
.Dv SIGTERM | .Dv SIGTERM | ||||
(and subsequently a | (and subsequently a | ||||
.Dv SIGKILL ) | .Dv SIGKILL ) | ||||
and, respectively, halt or restart the system. | and, respectively, halt or restart the system. | ||||
The action is logged, including entering a shutdown record into the user | The action is logged, including entering a shutdown record into the user | ||||
accounting database. | accounting database. | ||||
.Pp | .Pp | ||||
The options are as follows: | The options are as follows: | ||||
.Bl -tag -width indent | .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 | .It Fl d | ||||
The system is requested to create a crash dump. | The system is requested to create a crash dump. | ||||
This option is | This option is | ||||
supported only when rebooting, and it has no effect unless a dump | supported only when rebooting, and it has no effect unless a dump | ||||
device has previously been specified with | device has previously been specified with | ||||
.Xr dumpon 8 . | .Xr dumpon 8 . | ||||
.It Fl k Ar kernel | .It Fl k Ar kernel | ||||
Boot the specified | Boot the specified | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
it only works with NFSv4, and requires a numeric IPv4 address: | it only works with NFSv4, and requires a numeric IPv4 address: | ||||
.Bd -literal -offset indent | .Bd -literal -offset indent | ||||
kenv vfs.root.mountfrom=nfs:192.168.1.1:/share/name | kenv vfs.root.mountfrom=nfs:192.168.1.1:/share/name | ||||
reboot -r | reboot -r | ||||
.Ed | .Ed | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr kenv 1 , | .Xr kenv 1 , | ||||
.Xr getutxent 3 , | .Xr getutxent 3 , | ||||
.Xr ipmi 4 , | |||||
.Xr boot 8 , | .Xr boot 8 , | ||||
.Xr dumpon 8 , | .Xr dumpon 8 , | ||||
.Xr nextboot 8 , | .Xr nextboot 8 , | ||||
.Xr savecore 8 , | .Xr savecore 8 , | ||||
.Xr shutdown 8 , | .Xr shutdown 8 , | ||||
.Xr sync 8 | .Xr sync 8 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
A | A | ||||
.Nm | .Nm | ||||
utility appeared in | utility appeared in | ||||
.Bx 4.0 . | .Bx 4.0 . |