| REBOOT(8) | System Manager's Manual | REBOOT(8) |
reboot, poweroff,
halt —
halt |
[-dlnpqvxz] |
poweroff |
[-dlnqvxz] |
reboot |
[-dlnqvxz] [arg ...] |
poweroff, halt and
reboot utilities flush the file system cache to disk,
send all running processes a SIGTERM, wait for up to
30 seconds for them to die, send a SIGKILL to the
survivors and, respectively, power down, halt or restart the system. The
action is logged, including entering a shutdown record into the login
accounting file and sending a message via
syslog(3).
The options are as follows:
-d-l-n-phalt.-vAB_VERBOSE to
reboot(2).-xAB_DEBUG to
reboot(2).-zAB_SILENT to
reboot(2).-qIf there are any arguments passed to
reboot they are concatenated with spaces and passed
as bootstr to the
reboot(2) system call. The
string is passed to the firmware on platforms that support it.
Normally, the shutdown(8) utility is used when the system needs to be halted or restarted, giving users advance warning of their impending doom.
reboot command appeared in
4.0BSD.
The poweroff command first appeared in
NetBSD 1.5.
This command will stop the system without running any shutdown(8) scripts. Amongst other things, this means that swapping will not be disabled so that raid(4) can shutdown cleanly. You should normally use shutdown(8) unless you are running in single user mode.
SIGTERM signal. To
avoid waiting for the timeout when rebooting or halting from the single user
shell, you have to exec reboot or
exec halt.
| September 12, 2016 | NetBSD 10.1 |