major cleanup, make it pass lint so I can leave the include files
[unix-history] / usr / src / sbin / reboot / reboot.8
CommitLineData
44654500
KB
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
5492d932
KB
3.\"
4.\" %sccs.include.redist.roff%
5.\"
44654500 6.\" @(#)reboot.8 8.1 (Berkeley) %G%
5492d932
KB
7.\"
8.Dd
9.Dt REBOOT 8
10.Os
11.Sh NAME
24ab82b3
KB
12.Nm reboot ,
13.Nm halt
5492d932 14.Nd
24ab82b3 15stopping and restarting the system
5492d932 16.Sh SYNOPSIS
24ab82b3
KB
17.Nm halt
18.Op Fl nq
5492d932
KB
19.Nm reboot
20.Op Fl nq
21.Sh DESCRIPTION
22The
24ab82b3
KB
23.Nm halt
24and
5492d932 25.Nm reboot
24ab82b3
KB
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
5492d932
KB
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,
24ab82b3
KB
38the file system cache is not flushed.
39This option should probably not be used.
5492d932
KB
40.It Fl q
41If the
42.Fl q
43option is specified,
24ab82b3
KB
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.
5492d932
KB
47.El
48.Pp
24ab82b3 49Normally, the
5492d932 50.Xr shutdown 8
24ab82b3
KB
51utility is used when the system needs to be halted or restarted, giving
52users advance warning of their impending doom.
5492d932
KB
53.Sh SEE ALSO
54.Xr sync 1 ,
55.Xr utmp 5 ,
56.Xr boot 8 ,
24ab82b3 57.Xr shutdown 8
5492d932 58.Sh HISTORY
b9bebc5f
KB
59A
60.Nm reboot
61command appeared in
62.At v6 .