```

     FSHALT(8)                                               FSHALT(8)

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

     SYNOPSIS
          fshalt [ -r [ kernelpath ] ]
          reboot [ kernelpath ]
          scram

     DESCRIPTION
          Fshalt syncs and halts all local cwfs(4), hjfs(4),
          ext4srv(4), and gefs(4) servers.  If given -r, fshalt will
          then reboot the machine, optionally starting kernelpath.
          Else it will try to shut down the machine through /dev/pmctl
          (if available) or invoke scram. The halting and rebooting is
          done by copying all necessary commands 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 by writing
          power off to /dev/pmctl.

     SOURCE
          /rc/bin/fshalt
          /rc/bin/reboot
          /rc/bin/scram

     SEE ALSO
          acpi(8), cons(3), reboot(8)

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

          Scram falls back to trying aux/acpi if writing to /dev/pmctl
          fails.

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


     REBOOT(8)                                               REBOOT(8)

     NAME
          reboot - reboot the system upon loss of remote file server
          connection

     SYNOPSIS
          aux/reboot [ file ]

     DESCRIPTION
          Reboot stats file, default /$cputype/lib, once every five
          minutes.  If the stat fails, rather than timing out, reboot
          reboots the system.  This is used to restart diskless cpu
          servers whenever their file server connection is broken.

     SOURCE
          /sys/src/cmd/aux/reboot.c

```
