Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
shutdown — shut down the computerSYNOPSIS
shutdown | [-Dhikpr] [time] [messages ...] |
DESCRIPTION
shutdown gracefully powers off the computer at the specified time by waiting in the background and sending a request to the appropriate init(8) process.- now
- Shutdown immediately.
- +minutes[unit]
- Shutdown after this many minutes. Optionally another unit can be specified with a s, sec, m, min, h, or hour suffix.
- HH:MM
- Shutdown at this time today, or tomorrow if in the past.
- HH:MM:SS
- Shutdown at this time today, or tomorrow if in the past.
- YYYY-mm-dd HH:MM:SS
- Shutdown at this time.
- -D
- Run in the foreground rather than detaching a child process.
- -h
- Halt the operating system.
- -i
- Reinitialize the operating system.
- -k
- Broadcast the warning messages and create nologin but don't actually shut down.
- -p
- Power off the system. This is the default behavior.
- -r
- Reboot the system.
FILES
- /var/run/nologin
- Further non-privileged logins are prohibited if this file exists and users attempting to log in are shown the contents of this file.
ASYNCHRONOUS EVENTS
- SIGINT
- Cancels the pending shutdown and deletes the nologin file.
- SIGTERM
- Cancels the pending shutdown and deletes the nologin file.
- SIGQUIT
- Cancels the pending shutdown and deletes the nologin file.