Commit | Line | Data |
---|---|---|
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 | 15 | stopping 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 | |
22 | The | |
24ab82b3 KB |
23 | .Nm halt |
24 | and | |
5492d932 | 25 | .Nm reboot |
24ab82b3 KB |
26 | utilities flush the file system cache to disk, send all running processes |
27 | a SIGTERM (and subsequently a SIGKILL) and, respectively, halt or restart | |
28 | the system. | |
29 | The action is logged, including entering a shutdown record into the login | |
5492d932 KB |
30 | accounting file. |
31 | .Pp | |
32 | The options are as follows: | |
33 | .Bl -tag -width Ds | |
34 | .It Fl n | |
35 | If the | |
36 | .Fl n | |
37 | option is specified, | |
24ab82b3 KB |
38 | the file system cache is not flushed. |
39 | This option should probably not be used. | |
5492d932 KB |
40 | .It Fl q |
41 | If the | |
42 | .Fl q | |
43 | option is specified, | |
24ab82b3 KB |
44 | the system is halted or restarted quickly and ungracefully, and only |
45 | the flushing of the file system cache is performed. | |
46 | This option should probably not be used. | |
5492d932 KB |
47 | .El |
48 | .Pp | |
24ab82b3 | 49 | Normally, the |
5492d932 | 50 | .Xr shutdown 8 |
24ab82b3 KB |
51 | utility is used when the system needs to be halted or restarted, giving |
52 | users 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 |
59 | A |
60 | .Nm reboot | |
61 | command appeared in | |
62 | .At v6 . |