version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
HALT |
|
|
2 |
!!!HALT |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
DIAGNOSTICS |
|
|
8 |
NOTES |
|
|
9 |
AUTHOR |
|
|
10 |
SEE ALSO |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
halt, reboot, poweroff - stop the system. |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__/sbin/halt__ [[__-n__] [[__-w__] [[__-d__] |
|
|
20 |
[[__-f__] [[__-i__] [[__-p__] [[__-h__]__ |
|
|
21 |
/sbin/reboot__ [[__-n__] [[__-w__] [[__-d__] |
|
|
22 |
[[__-f__] [[__-i__]__ |
|
|
23 |
/sbin/poweroff__ [[__-n__] [[__-w__] [[__-d__] |
|
|
24 |
[[__-f__] [[__-i__] [[__-h__] |
|
|
25 |
!!DESCRIPTION |
|
|
26 |
|
|
|
27 |
|
|
|
28 |
__Halt__ notes that the system is being brought down in |
|
|
29 |
the file ''/var/log/wtmp'', and then either tells the |
|
|
30 |
kernel to halt, reboot or poweroff the system. |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
If __halt__ or __reboot__ is called when the system is |
|
|
34 |
''not'' in runlevel __0__ or __6__, in other words |
|
|
35 |
when it's running normally, __shutdown__ will be invoked |
|
|
36 |
instead (with the __-h__ or __-r__ flag). For more |
|
|
37 |
info see the shutdown(8) manpage. |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
The rest of this manpage describes the behaviour in |
|
|
41 |
runlevels 0 and 6, that is when the systems shutdown scripts |
|
|
42 |
are being run. |
|
|
43 |
!!OPTIONS |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
__-n__ |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
Don't sync before reboot or halt. |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__-w__ |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
Don't actually reboot or halt but only write the wtmp record |
|
|
56 |
(in the ''/var/log/wtmp'' file). |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
__-d__ |
|
|
60 |
|
|
|
61 |
|
|
|
62 |
Don't write the wtmp record. The __-n__ flag implies |
|
|
63 |
__-d__. |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
__-f__ |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
Force halt or reboot, don't call |
|
|
70 |
shutdown(8). |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
__-i__ |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
Shut down all network interfaces just before halt or |
|
|
77 |
reboot. |
|
|
78 |
|
|
|
79 |
|
|
|
80 |
__-h__ |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
Put all harddrives on the system in standby mode just before |
|
|
84 |
halt or poweroff. |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
__-p__ |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
When halting the system, do a poweroff. This is the default |
|
|
91 |
when halt is called as __poweroff__. |
|
|
92 |
!!DIAGNOSTICS |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
If you're not the superuser, you will get the message `must |
|
|
96 |
be superuser'. |
|
|
97 |
!!NOTES |
|
|
98 |
|
|
|
99 |
|
|
|
100 |
Under older __sysvinit__ releases , __reboot__ and |
|
|
101 |
__halt__ should never be called directly. From release |
|
|
102 |
2.74 on __halt__ and __reboot__ invoke |
|
|
103 |
shutdown(8) if the system is not in runlevel 0 or 6. |
|
|
104 |
This means that if __halt__ or __reboot__ cannot find |
|
|
105 |
out the current runlevel (for example, when |
|
|
106 |
''/var/run/utmp'' hasn't been initialized correctly) |
|
|
107 |
__shutdown__ will be called, which might not be what you |
|
|
108 |
want. Use the __-f__ flag if you want to do a hard |
|
|
109 |
__halt__ or __reboot__. |
|
|
110 |
|
|
|
111 |
|
|
|
112 |
The __-h__ flag puts all harddisks in standby mode just |
|
|
113 |
before halt or poweroff. Right now this is only implemented |
|
|
114 |
for IDE drives. A side effect of putting the drive in |
|
|
115 |
standby mode is that the write cache on the disk is flushed. |
|
|
116 |
This is important for IDE drives, since the kernel doesn't |
|
|
117 |
flush the write-cache itself before poweroff. |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
The __halt__ program uses /proc/ide/hd* to find all IDE |
|
|
121 |
disk devices, which means that /proc needs to be mounted |
|
|
122 |
when __halt__ or __poweroff__ is called or the |
|
|
123 |
__-h__ switch will do nothing. |
|
|
124 |
!!AUTHOR |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
Miquel van Smoorenburg, miquels@cistron.nl |
|
|
128 |
!!SEE ALSO |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
shutdown(8), init(8) |
|
|
132 |
---- |