FSHALT(8)                                               FSHALT(8)

     NAME
          fshalt, scram, reboot - halt any local file systems and
          optionally shut down or reboot the system

     SYNOPSIS
          fshalt [ -r ]
          reboot [ kernelpath ]
          scram

     DESCRIPTION
          Fshalt syncs and halts all local cwfs(4) and hjfs(4)
          servers.  If given -r, fshalt will then reboot the machine.
          Else it will invoke scram to shut down the machine.  The
          halting and rebooting is done by copying all necessary com-
          mands into a 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.

          Reboot restarts the machine it is invoked on. If an optional
          kernelpath is specified then the machine will load and start
          that kernel directly instead of returning to the system rom.
          (see cons(3)).

          Scram shuts down the machine it is invoked on.

     SOURCE
          /rc/bin/fshalt
          /rc/bin/reboot
          /sys/src/cmd/scram.c

     SEE ALSO
          cons(3), reboot(8)

     BUGS
          On standalone machines, it will be impossible to do anything
          if scram fails after invoking bare fshalt.

          Scram is limited to the PC and requires APM or ACPI.

     HISTORY
          Scram first appeared in 9front (May, 2011).

     Page 1                       Plan 9             (printed 3/28/24)