xref: /original-bsd/sbin/reboot/reboot.8 (revision d4efd688)
1.\" Copyright (c) 1990, 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.roff%
5.\"
6.\"	@(#)reboot.8	5.2 (Berkeley) 10/30/91
7.\"
8.Dd
9.Dt REBOOT 8
10.Os
11.Sh NAME
12.Nm reboot ,
13.Nm halt
14.Nd
15stopping and restarting the system
16.Sh SYNOPSIS
17.Nm halt
18.Op Fl nq
19.Nm reboot
20.Op Fl nq
21.Sh DESCRIPTION
22The
23.Nm halt
24and
25.Nm reboot
26utilities flush the file system cache to disk, send all running processes
27a SIGTERM (and subsequently a SIGKILL) and, respectively, halt or restart
28the system.
29The action is logged, including entering a shutdown record into the login
30accounting file.
31.Pp
32The options are as follows:
33.Bl -tag -width Ds
34.It Fl n
35If the
36.Fl n
37option is specified,
38the file system cache is not flushed.
39This option should probably not be used.
40.It Fl q
41If the
42.Fl q
43option is specified,
44the system is halted or restarted quickly and ungracefully, and only
45the flushing of the file system cache is performed.
46This option should probably not be used.
47.El
48.Pp
49Normally, the
50.Xr shutdown 8
51utility is used when the system needs to be halted or restarted, giving
52users advance warning of their impending doom.
53.Sh SEE ALSO
54.Xr sync 1 ,
55.Xr utmp 5 ,
56.Xr boot 8 ,
57.Xr shutdown 8
58.Sh HISTORY
59The
60.Nm
61command is
62.Ud .
63