xref: /openbsd/sbin/reboot/reboot.8 (revision 78b63d65)
1.\"	$OpenBSD: reboot.8,v 1.24 2001/10/27 04:32:51 pvalchev Exp $
2.\"	$NetBSD: reboot.8,v 1.3 1995/10/05 05:36:21 mycroft Exp $
3.\"
4.\" Copyright (c) 1990, 1991, 1993
5.\"	The Regents of the University of California.  All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\" 3. All advertising materials mentioning features or use of this software
16.\"    must display the following acknowledgement:
17.\"	This product includes software developed by the University of
18.\"	California, Berkeley and its contributors.
19.\" 4. Neither the name of the University nor the names of its contributors
20.\"    may be used to endorse or promote products derived from this software
21.\"    without specific prior written permission.
22.\"
23.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
24.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\"	@(#)reboot.8	8.1 (Berkeley) 6/9/93
36.\"
37.Dd June 9, 1993
38.Dt REBOOT 8
39.Os
40.Sh NAME
41.Nm reboot ,
42.Nm halt
43.Nd stopping and restarting the system
44.Sh SYNOPSIS
45.Nm halt
46.Op Fl dnpq
47.Nm reboot
48.Op Fl dnq
49.Sh DESCRIPTION
50The
51.Nm halt
52and
53.Nm reboot
54utilities flush the file system cache to disk, run the system
55shutdown script, send all running processes a
56.Dv SIGTERM
57.Pq and subsequently a Dv SIGKILL ,
58and, respectively, halt or restart the system.
59The action is logged, including entering a shutdown record into the login
60accounting file.
61.Pp
62The options are as follows:
63.Bl -tag -width Ds
64.It Fl d
65Causes system to create a dump before rebooting.
66This option is useful for debugging system dump procedures or
67capturing the state of a corrupted or misbehaving system.
68See
69.Xr savecore 8
70for information on how to recover this dump.
71.It Fl n
72Prevent file system cache from being flushed.
73This option should probably not be used.
74.It Fl q
75Quick.
76The system is halted or restarted quickly and ungracefully, and only
77the flushing of the file system cache is performed.
78This option should probably not be used.
79.It Fl p
80Causes the system to power down, if it is being halted, and the
81hardware supports automatic power down.
82(Currently supported on some i386, mac68k, macppc, sparc and sparc64 platforms.)
83.El
84.Pp
85Normally, the
86.Xr shutdown 8
87utility is used when the system needs to be halted or restarted, giving
88users advance warning of their impending doom.
89.Sh FILES
90.Bl -tag -width /etc/rc.shutdown -compact
91.It Pa /etc/rc.shutdown
92script which is run at shutdown time
93.El
94.Sh SEE ALSO
95.Xr utmp 5 ,
96.\" .Xr boot 8 ,
97.Xr boot_alpha 8 ,
98.Xr boot_amiga 8 ,
99.Xr boot_hp300 8 ,
100.Xr boot_i386 8 ,
101.Xr boot_mac68k 8 ,
102.\" .Xr boot_macppc 8 ,
103.\" .Xr boot_mvme68k 8 ,
104.\" .Xr boot_mvmeppc 8 ,
105.Xr boot_sparc 8 ,
106.\" .Xr boot_sparc64 8 ,
107.Xr boot_sun3 8 ,
108.Xr boot_vax 8 ,
109.Xr rc.shutdown 8 ,
110.Xr savecore 8 ,
111.Xr shutdown 8 ,
112.Xr sync 8
113.Sh HISTORY
114A
115.Nm reboot
116command appeared in
117.At v6 .
118