]> git.lizzy.rs Git - plan9front.git/blob - sys/man/8/fshalt
kernel: make mp mode and msi interrupts the default. *msi -> *nomsi
[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 .br
12 .B scram
13 .SH DESCRIPTION
14 .I Fshalt
15 syncs all local
16 .IR cwfs (4),
17 .IR venti (8),
18 and
19 .IR kfs (4)
20 servers,
21 then halts all local
22 .IR cwfs
23 and
24 .IR kfs
25 servers.
26 If given
27 .BR -r ,
28 .I fshalt
29 will then reboot the machine.
30 Else it will invoke
31 .I scram
32 to shut down the machine.
33 The halting and rebooting is done by copying all necessary
34 commands into a
35 .IR ramfs (4)
36 file system and changing directory there before attempting to halt
37 file systems,
38 so this will work even on standalone machines with their roots on
39 local file systems.
40 .PP
41 .I Reboot
42 restarts the machine it is invoked on.
43 .PP
44 .I Scram
45 shuts down the machine it is invoked on.
46 .SH SOURCE
47 .B /rc/bin/fshalt
48 .br
49 .B /rc/bin/reboot
50 .br
51 .B /sys/src/cmd/scram.c
52 .SH SEE ALSO
53 .IR cons (3),
54 .IR reboot (8)
55 .SH BUGS
56 On standalone machines, it will be impossible to do anything if scram fails
57 after invoking bare
58 .IR fshalt .
59
60 .I Scram
61 is limited to the PC and requires APM or ACPI.