Changeset View
Changeset View
Standalone View
Standalone View
head/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 October 11, 2010 | .Dd May 22, 2015 | ||||
.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 lnpq | .Op Fl lnpq | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Nm | .Nm | ||||
.Op Fl dlnpq | .Op Fl dlnpqr | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Nm fasthalt | .Nm fasthalt | ||||
.Op Fl lnpq | .Op Fl lnpq | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Nm fastboot | .Nm fastboot | ||||
.Op Fl dlnpq | .Op Fl dlnpq | ||||
.Op Fl k Ar kernel | .Op Fl k Ar kernel | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
.Nm | .Nm | ||||
was called. | was called. | ||||
.It Fl q | .It Fl q | ||||
The system is halted or restarted quickly and ungracefully, and only | The system is halted or restarted quickly and ungracefully, and only | ||||
the flushing of the file system cache is performed (if the | the flushing of the file system cache is performed (if the | ||||
.Fl n | .Fl n | ||||
option is not specified). | option is not specified). | ||||
This option should probably not be used. | This option should probably not be used. | ||||
.It Fl r | |||||
The system kills all processes, unmounts all filesystems, mounts the new | |||||
root filesystem, and begins the usual startup sequence. | |||||
After changing vfs.root.mountfrom with | |||||
.Xr kenv 8 , | |||||
.Nm Fl r | |||||
can be used to change the root filesystem while preserving kernel state. | |||||
.El | .El | ||||
.Pp | .Pp | ||||
The | The | ||||
.Nm fasthalt | .Nm fasthalt | ||||
and | and | ||||
.Nm fastboot | .Nm fastboot | ||||
utilities are nothing more than aliases for the | utilities are nothing more than aliases for the | ||||
.Nm halt | .Nm halt | ||||
and | and | ||||
.Nm | .Nm | ||||
utilities. | utilities. | ||||
.Pp | .Pp | ||||
Normally, the | Normally, the | ||||
.Xr shutdown 8 | .Xr shutdown 8 | ||||
utility is used when the system needs to be halted or restarted, giving | utility is used when the system needs to be halted or restarted, giving | ||||
users advance warning of their impending doom and cleanly terminating | users advance warning of their impending doom and cleanly terminating | ||||
specific programs. | specific programs. | ||||
.Sh EXAMPLES | |||||
Replace current root filesystem with UFS mounted from | |||||
.Pa /dev/ada0s1a : | |||||
.Bd -literal -offset indent | |||||
kenv vfs.root.mountfrom=ufs:/dev/ada0s1a | |||||
reboot -r | |||||
.Ed | |||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr getutxent 3 , | .Xr getutxent 3 , | ||||
.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 | ||||
.At v6 . | .At v6 . |