]> git.lizzy.rs Git - plan9front.git/blob - sys/man/8/fshalt
merge
[plan9front.git] / sys / man / 8 / fshalt
1 .TH FSHALT 8
2 .SH NAME
3 fshalt, scram, reboot \- halt any local file systems and optionally shut down or reboot the system
4 .SH SYNOPSIS
5 .B fshalt
6 [
7 .B -r
8 ]
9 .br
10 .B reboot
11 [
12 .I kernelpath
13 ]
14 .br
15 .B scram
16 .SH DESCRIPTION
17 .I Fshalt
18 syncs and halts all local
19 .IR cwfs (4)
20 and
21 .IR hjfs (4)
22 servers.
23 If given
24 .BR -r ,
25 .I fshalt
26 will then reboot the machine.
27 Else it will invoke
28 .I scram
29 to shut down the machine.
30 The halting and rebooting is done by copying all necessary
31 commands into a
32 .IR ramfs (4)
33 file system and changing directory there before attempting to halt
34 file systems,
35 so this will work even on standalone machines with their roots on
36 local file systems.
37 .PP
38 .I Reboot
39 restarts the machine it is invoked on. If an optional
40 .I kernelpath
41 is specified then the machine will load and start that
42 kernel directly instead of returning to the system rom. (see
43 .IR cons (3)).
44 .PP
45 .I Scram
46 shuts down the machine it is invoked on.
47 .SH SOURCE
48 .B /rc/bin/fshalt
49 .br
50 .B /rc/bin/reboot
51 .br
52 .B /sys/src/cmd/scram.c
53 .SH SEE ALSO
54 .IR cons (3),
55 .IR reboot (8)
56 .SH BUGS
57 On standalone machines, it will be impossible to do anything if scram fails
58 after invoking bare
59 .IR fshalt .
60
61 .I Scram
62 is limited to the PC and requires APM or ACPI.
63 .SH HISTORY
64 .I Scram
65 first appeared in 9front (May, 2011).