plan9fox/sys/man/8/fshalt

60 lines
1 KiB
Plaintext
Raw Normal View History

.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
.SH SYNOPSIS
.B fshalt
[
.B -r
]
.br
.B reboot
2011-05-18 04:17:27 +00:00
.br
.B scram
.SH DESCRIPTION
.I Fshalt
syncs all local
2011-05-12 18:36:46 +00:00
.IR cwfs (4),
.IR venti (8),
and
.IR kfs (4)
servers,
then halts all local
2011-05-12 18:36:46 +00:00
.IR cwfs
and
.IR kfs
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.
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
restarts the machine it is invoked on.
2011-05-18 04:17:27 +00:00
.PP
.I Scram
shuts down the machine it is invoked on.
.SH SOURCE
.B /rc/bin/fshalt
.br
.B /rc/bin/reboot
.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
after invoking bare
2011-05-18 04:17:27 +00:00
.IR fshalt .
.I Scram
is limited to the PC and requires APM.