use logwtmp()
[unix-history] / usr / src / sbin / reboot / halt.8
CommitLineData
5bcf4c18
KB
1.\" Copyright (c) 1980 The Regents of the University of California.
2.\" All rights reserved.
79ff4b9e 3.\"
5bcf4c18
KB
4.\" Redistribution and use in source and binary forms are permitted
5.\" provided that the above copyright notice and this paragraph are
6.\" duplicated in all such forms and that any documentation,
7.\" advertising materials, and other materials related to such
8.\" distribution and use acknowledge that the software was developed
9.\" by the University of California, Berkeley. The name of the
10.\" University may not be used to endorse or promote products derived
11.\" from this software without specific prior written permission.
12.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14.\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
79ff4b9e 15.\"
5bcf4c18
KB
16.\" @(#)halt.8 6.3 (Berkeley) %G%
17.\"
18.TH <PROGNAME> <SECTION> ""
cc6525dc 19.TH HALT 8 ""
79ff4b9e
KM
20.UC 4
21.SH NAME
22halt \- stop the processor
23.SH SYNOPSIS
24.B /etc/halt
25[
26.B \-n
27]
28[
29.B \-q
30]
31[
32.B \-y
33]
34.SH DESCRIPTION
35.I Halt
36writes out sandbagged information to the disks and then stops
37the processor. The machine does not reboot, even if the auto-reboot
38switch is set on the console.
39.PP
40The
41.B \-n
42option prevents the sync before stopping. The
43.B \-q
44option causes a quick halt, no graceful shutdown is attempted. The
45.B \-y
46option is needed if you are trying to halt the system from a dialup.
b77763cc
MK
47.PP
48.I Halt
49normally logs the shutdown using
50.IR syslog (8)
51and places a shutdown record in the login accounting file
52/usr/adm/wtmp.
53These actions are inhibited if the
54.B \-n
55or
56.B \-q
57options are present.
79ff4b9e 58.SH SEE ALSO
b77763cc 59reboot(8), shutdown(8), syslogd(8)
79ff4b9e
KM
60.SH BUGS
61It is very difficult to halt a VAX, as the machine wants to then
62reboot itself. A rather tight loop suffices.