halt, reboot, fastboot, fasthalt(8) | stopping and restarting the system |
fastboot, reboot, fasthalt, halt(8) | stopping and restarting the system |
fasthalt, reboot, fastboot, halt(8) | stopping and restarting the system |
reboot, fastboot, fasthalt, halt(8) | stopping and restarting the system |
REBOOT(8) | MidnightBSD System Manager's Manual | REBOOT(8) |
reboot
, halt
,
fastboot
, fasthalt
—
stopping and restarting the system
halt |
[-lNnpq ] [-k
kernel] |
reboot |
[-cdlNnpqr ] [-k
kernel] |
fasthalt |
[-lNnpq ] [-k
kernel] |
fastboot |
[-dlNnpq ] [-k
kernel] |
The halt
and
reboot
utilities flush the file system cache to
disk, send all running processes a SIGTERM
(and
subsequently a SIGKILL
) and, respectively, halt or
restart the system. The action is logged, including entering a shutdown
record into the user accounting database.
The options are as follows:
-c
halt
or
reboot
was called. At the present time, only the
ipmi(4) driver implements
the power cycle functionality and only on hardware with a BMC that
supports power cycling. Unlike power off, the amount of hardware that
supports power cycling is small.-d
-k
kernel-l
reboot
or halt
and
log this themselves.-N
-n
-p
halt
or reboot
was
called.-q
-n
option is not specified). This option should
probably not be used.-r
reboot
-r
can be used to
change the root filesystem while preserving kernel state. This requires
the tmpfs(5) kernel
module to be loaded because
init(8) needs a place to
store itself after the old root is unmounted, but before the new root is
in place.The fasthalt
and
fastboot
utilities are nothing more than aliases for
the halt
and reboot
utilities.
Normally, the shutdown(8) utility is used when the system needs to be halted or restarted, giving users advance warning of their impending doom and cleanly terminating specific programs.
Replace current root filesystem with UFS mounted from /dev/ada0s1a:
kenv vfs.root.mountfrom=ufs:/dev/ada0s1a reboot -r
This mechanism can also be used with NFS, with a caveat that it only works with NFSv4, and requires a numeric IPv4 address:
kenv vfs.root.mountfrom=nfs:192.168.1.1:/share/name reboot -r
kenv(1), getutxent(3), ipmi(4), boot(8), dumpon(8), nextboot(8), savecore(8), shutdown(8), sync(8)
A reboot
utility appeared in
4.0BSD.
December 20, 2017 | midnightbsd-3.1 |