]> git.lizzy.rs Git - plan9front.git/blob - sys/man/8/fshalt
hjfs: add users command, fix newuser ? documentation
[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 .IR hjfs (4),
21 .IR venti (8),
22 and
23 .IR kfs (4)
24 servers.
25 If given
26 .BR -r ,
27 .I fshalt
28 will then reboot the machine.
29 Else it will invoke
30 .I scram
31 to shut down the machine.
32 The halting and rebooting is done by copying all necessary
33 commands into a
34 .IR ramfs (4)
35 file system and changing directory there before attempting to halt
36 file systems,
37 so this will work even on standalone machines with their roots on
38 local file systems.
39 .PP
40 .I Reboot
41 restarts the machine it is invoked on. If an optional
42 .I kernelpath
43 is specified then the machine will load and start that
44 kernel directly instead of returning to the system rom. (see
45 .IR cons (3)).
46 .PP
47 .I Scram
48 shuts down the machine it is invoked on.
49 .SH SOURCE
50 .B /rc/bin/fshalt
51 .br
52 .B /rc/bin/reboot
53 .br
54 .B /sys/src/cmd/scram.c
55 .SH SEE ALSO
56 .IR cons (3),
57 .IR reboot (8)
58 .SH BUGS
59 On standalone machines, it will be impossible to do anything if scram fails
60 after invoking bare
61 .IR fshalt .
62
63 .I Scram
64 is limited to the PC and requires APM or ACPI.