sys/vfs/hammer2: Remove #if0'd code using removed function
[dragonfly.git] / sbin / reboot / reboot.8
blob43749c79a3b360155b1104343ee4f561cb144daf
1 .\" Copyright (c) 1990, 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)reboot.8    8.1 (Berkeley) 6/9/93
29 .\" $FreeBSD: src/sbin/reboot/reboot.8,v 1.10.2.7 2003/02/23 22:42:10 trhodes Exp $
30 .\"
31 .Dd June 9, 2020
32 .Dt REBOOT 8
33 .Os
34 .Sh NAME
35 .Nm reboot ,
36 .Nm halt ,
37 .Nm fastboot ,
38 .Nm fasthalt
39 .Nd stopping and restarting the system
40 .Sh SYNOPSIS
41 .Nm halt
42 .Op Fl lnqp
43 .Nm
44 .Op Fl dlnqp
45 .Nm fasthalt
46 .Op Fl lnqp
47 .Nm fastboot
48 .Op Fl dlnqp
49 .Sh DESCRIPTION
50 The
51 .Nm halt
52 and
53 .Nm
54 utilities flush the file system cache to disk, send all running processes
56 .Dv SIGTERM
57 (and subsequently a
58 .Dv SIGKILL )
59 and, respectively, halt or restart the system.
60 The action is logged, including entering a shutdown record into the
61 .Xr wtmpx 5
62 file.
63 .Pp
64 The options are as follows:
65 .Bl -tag -width indent
66 .It Fl d
67 The system is requested to create a crash dump.
68 This option is
69 supported only when rebooting, and it has no effect unless a dump
70 device has previously been specified with
71 .Xr dumpon 8 .
72 .It Fl l
73 The halt or reboot is
74 .Em not
75 logged to the system log.
76 This option is intended for applications such as
77 .Xr shutdown 8 ,
78 that call
79 .Nm
81 .Nm halt
82 and log this themselves.
83 .It Fl n
84 The file system cache is not flushed.
85 This option should probably not be used.
86 .It Fl p
87 The system will turn off the power if it can.
88 If the power down action fails, the system
89 will halt or reboot normally, depending on whether
90 .Nm halt
92 .Nm
93 was called.
94 .It Fl q
95 The system is halted or restarted quickly and ungracefully, and only
96 the flushing of the file system cache is performed (if the
97 .Fl n
98 is not specified).
99 This option should probably not be used.
103 .Nm fasthalt
105 .Nm fastboot
106 utilities are nothing more than aliases for the
107 .Nm halt
110 utilities.
112 Normally, the
113 .Xr shutdown 8
114 utility is used when the system needs to be halted or restarted, giving
115 users advance warning of their impending doom and cleanly terminating
116 specific programs.
117 .Sh SEE ALSO
118 .Xr wtmpx 5 ,
119 .Xr boot 8 ,
120 .Xr dumpon 8 ,
121 .Xr savecore 8 ,
122 .Xr shutdown 8 ,
123 .Xr sync 8
124 .Sh HISTORY
127 command appeared in
128 .Bx 4.0 .