18fae3551SRodney W. Grimes.\" Copyright (c) 1990, 1991, 1993 28fae3551SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 38fae3551SRodney W. Grimes.\" 48fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 58fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions 68fae3551SRodney W. Grimes.\" are met: 78fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 88fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 98fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 108fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 118fae3551SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 128fae3551SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 138fae3551SRodney W. Grimes.\" must display the following acknowledgement: 148fae3551SRodney W. Grimes.\" This product includes software developed by the University of 158fae3551SRodney W. Grimes.\" California, Berkeley and its contributors. 168fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 178fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 188fae3551SRodney W. Grimes.\" without specific prior written permission. 198fae3551SRodney W. Grimes.\" 208fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 218fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 228fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 238fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 248fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 258fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 268fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 278fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 288fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 298fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 308fae3551SRodney W. Grimes.\" SUCH DAMAGE. 318fae3551SRodney W. Grimes.\" 328fae3551SRodney W. Grimes.\" @(#)reboot.8 8.1 (Berkeley) 6/9/93 337f3dea24SPeter Wemm.\" $FreeBSD$ 348fae3551SRodney W. Grimes.\" 358fae3551SRodney W. Grimes.Dd June 9, 1993 368fae3551SRodney W. Grimes.Dt REBOOT 8 378fae3551SRodney W. Grimes.Os 388fae3551SRodney W. Grimes.Sh NAME 398fae3551SRodney W. Grimes.Nm reboot , 4008ad04ceSAlexey Zelkin.Nm halt , 4108ad04ceSAlexey Zelkin.Nm fastboot , 4208ad04ceSAlexey Zelkin.Nm fasthalt 4308ad04ceSAlexey Zelkin.Nd stopping and restarting the system 448fae3551SRodney W. Grimes.Sh SYNOPSIS 458fae3551SRodney W. Grimes.Nm halt 460ee76202SNik Clayton.Op Fl lnqp 471de372dcSWes Peters.Op Fl k Ar kernel 487c7fb079SRuslan Ermilov.Nm 490ee76202SNik Clayton.Op Fl dlnqp 501de372dcSWes Peters.Op Fl k Ar kernel 517f4b19d6SDavid Greenman.Nm fasthalt 520ee76202SNik Clayton.Op Fl lnqp 531de372dcSWes Peters.Op Fl k Ar kernel 547f4b19d6SDavid Greenman.Nm fastboot 550ee76202SNik Clayton.Op Fl dlnqp 561de372dcSWes Peters.Op Fl k Ar kernel 578fae3551SRodney W. Grimes.Sh DESCRIPTION 588fae3551SRodney W. GrimesThe 598fae3551SRodney W. Grimes.Nm halt 608fae3551SRodney W. Grimesand 619448def9SPhilippe Charnier.Nm 628fae3551SRodney W. Grimesutilities flush the file system cache to disk, send all running processes 63d44b4fd2SRuslan Ermilova 64d44b4fd2SRuslan Ermilov.Dv SIGTERM 65d44b4fd2SRuslan Ermilov(and subsequently a 66d44b4fd2SRuslan Ermilov.Dv SIGKILL ) 67d44b4fd2SRuslan Ermilovand, respectively, halt or restart the system. 68d44b4fd2SRuslan ErmilovThe action is logged, including entering a shutdown record into the 69d44b4fd2SRuslan Ermilov.Xr wtmp 5 70d44b4fd2SRuslan Ermilovfile. 718fae3551SRodney W. Grimes.Pp 728fae3551SRodney W. GrimesThe options are as follows: 739448def9SPhilippe Charnier.Bl -tag -width indent 7485c981ccSJohn Polstra.It Fl d 7510cb9bd3SRuslan ErmilovThe system is requested to create a crash dump. 7610cb9bd3SRuslan ErmilovThis option is 7785c981ccSJohn Polstrasupported only when rebooting, and it has no effect unless a dump 7885c981ccSJohn Polstradevice has previously been specified with 7985c981ccSJohn Polstra.Xr dumpon 8 . 801de372dcSWes Peters.It Fl k Ar kernel 811de372dcSWes PetersBoot the specified 821de372dcSWes Peters.Ar kernel 8310cb9bd3SRuslan Ermilovon the next system boot. 8410cb9bd3SRuslan ErmilovIf the kernel boots successfully, the 851de372dcSWes Peters.Em default 861de372dcSWes Peterskernel will be booted on succesive boots, this is a one-shot option. 871de372dcSWes PetersIf the boot fails, the system will continue attempting to boot 881de372dcSWes Peters.Ar kernel 891de372dcSWes Petersuntil the boot process is interrupted and a valid kernel booted. 901de372dcSWes PetersThis may change in the future. 910ee76202SNik Clayton.It Fl l 920ee76202SNik ClaytonThe halt or reboot is 930ee76202SNik Clayton.Em not 940ee76202SNik Claytonlogged to the system log. 950ee76202SNik ClaytonThis option is intended for applications such as 960ee76202SNik Clayton.Xr shutdown 8 , 970ee76202SNik Claytonthat call 980ee76202SNik Clayton.Nm 990ee76202SNik Claytonor 1000ee76202SNik Clayton.Nm halt 1010ee76202SNik Claytonand log this themselves. 1028fae3551SRodney W. Grimes.It Fl n 1039448def9SPhilippe CharnierThe file system cache is not flushed. 1048fae3551SRodney W. GrimesThis option should probably not be used. 1058fae3551SRodney W. Grimes.It Fl q 1069448def9SPhilippe CharnierThe system is halted or restarted quickly and ungracefully, and only 107d44b4fd2SRuslan Ermilovthe flushing of the file system cache is performed (if the 108d44b4fd2SRuslan Ermilov.Fl n 1092aeb6b27SThomas Quinotflag is not specified). 1108fae3551SRodney W. GrimesThis option should probably not be used. 11147be7466SJulian Elischer.It Fl p 1122aeb6b27SThomas QuinotThe system will turn off the power if it can. 1132aeb6b27SThomas QuinotIf the power down action fails, the system 1142aeb6b27SThomas Quinotwill halt or reboot normally, depending on whether 1152aeb6b27SThomas Quinot.Nm halt 1162aeb6b27SThomas Quinotor 1172aeb6b27SThomas Quinot.Nm reboot 1182aeb6b27SThomas Quinotwas called. 1198fae3551SRodney W. Grimes.El 1208fae3551SRodney W. Grimes.Pp 1217f4b19d6SDavid GreenmanThe 1227f4b19d6SDavid Greenman.Nm fasthalt 1237f4b19d6SDavid Greenmanand 1247f4b19d6SDavid Greenman.Nm fastboot 1257f4b19d6SDavid Greenmanutilities are nothing more than aliases for the 1267f4b19d6SDavid Greenman.Nm halt 1277f4b19d6SDavid Greenmanand 1289448def9SPhilippe Charnier.Nm 1297f4b19d6SDavid Greenmanutilities. 1307f4b19d6SDavid Greenman.Pp 1318fae3551SRodney W. GrimesNormally, the 1328fae3551SRodney W. Grimes.Xr shutdown 8 1338fae3551SRodney W. Grimesutility is used when the system needs to be halted or restarted, giving 134d44b4fd2SRuslan Ermilovusers advance warning of their impending doom and cleanly terminating 135d44b4fd2SRuslan Ermilovspecific programs. 1368fae3551SRodney W. Grimes.Sh SEE ALSO 137d44b4fd2SRuslan Ermilov.Xr wtmp 5 , 1388fae3551SRodney W. Grimes.Xr boot 8 , 13985c981ccSJohn Polstra.Xr dumpon 8 , 14085c981ccSJohn Polstra.Xr savecore 8 , 14178b0b234SMike Pritchard.Xr shutdown 8 , 14278b0b234SMike Pritchard.Xr sync 8 1438fae3551SRodney W. Grimes.Sh HISTORY 1448fae3551SRodney W. GrimesA 1459448def9SPhilippe Charnier.Nm 146629e80efSPhilippe Charnierutility appeared in 1478fae3551SRodney W. Grimes.At v6 . 148