2011-03-30 13:49:47 +00:00
|
|
|
.TH FSHALT 8
|
|
|
|
.SH NAME
|
2011-05-18 04:17:27 +00:00
|
|
|
fshalt, scram, reboot \- halt any local file systems and optionally shut down or reboot the system
|
2011-03-30 13:49:47 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B fshalt
|
|
|
|
[
|
|
|
|
.B -r
|
|
|
|
]
|
|
|
|
.br
|
|
|
|
.B reboot
|
2012-10-14 11:33:10 +00:00
|
|
|
[
|
|
|
|
.I kernelpath
|
|
|
|
]
|
2011-05-18 04:17:27 +00:00
|
|
|
.br
|
|
|
|
.B scram
|
2011-03-30 13:49:47 +00:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.I Fshalt
|
2012-10-14 11:33:10 +00:00
|
|
|
syncs and halts all local
|
2011-05-12 18:36:46 +00:00
|
|
|
.IR cwfs (4),
|
2012-10-14 11:33:10 +00:00
|
|
|
.IR hjfs (4),
|
2011-03-30 13:49:47 +00:00
|
|
|
.IR venti (8),
|
|
|
|
and
|
|
|
|
.IR kfs (4)
|
|
|
|
servers.
|
|
|
|
If given
|
|
|
|
.BR -r ,
|
|
|
|
.I fshalt
|
|
|
|
will then reboot the machine.
|
2011-05-18 04:17:27 +00:00
|
|
|
Else it will invoke
|
|
|
|
.I scram
|
|
|
|
to shut down the machine.
|
2011-03-30 13:49:47 +00:00
|
|
|
The halting and rebooting is done by copying all necessary
|
|
|
|
commands into a
|
|
|
|
.IR ramfs (4)
|
|
|
|
file system and changing directory there before attempting to halt
|
|
|
|
file systems,
|
|
|
|
so this will work even on standalone machines with their roots on
|
|
|
|
local file systems.
|
|
|
|
.PP
|
|
|
|
.I Reboot
|
2012-10-14 11:33:10 +00:00
|
|
|
restarts the machine it is invoked on. If an optional
|
|
|
|
.I kernelpath
|
|
|
|
is specified then the machine will load and start that
|
|
|
|
kernel directly instead of returning to the system rom. (see
|
|
|
|
.IR cons (3)).
|
2011-05-18 04:17:27 +00:00
|
|
|
.PP
|
|
|
|
.I Scram
|
|
|
|
shuts down the machine it is invoked on.
|
2011-03-30 13:49:47 +00:00
|
|
|
.SH SOURCE
|
|
|
|
.B /rc/bin/fshalt
|
|
|
|
.br
|
|
|
|
.B /rc/bin/reboot
|
2012-06-29 14:18:24 +00:00
|
|
|
.br
|
|
|
|
.B /sys/src/cmd/scram.c
|
2011-03-30 13:49:47 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.IR cons (3),
|
|
|
|
.IR reboot (8)
|
|
|
|
.SH BUGS
|
2011-05-18 04:17:27 +00:00
|
|
|
On standalone machines, it will be impossible to do anything if scram fails
|
2011-03-30 13:49:47 +00:00
|
|
|
after invoking bare
|
2011-05-18 04:17:27 +00:00
|
|
|
.IR fshalt .
|
|
|
|
|
|
|
|
.I Scram
|
2012-06-29 15:49:41 +00:00
|
|
|
is limited to the PC and requires APM or ACPI.
|