Shut down and reboot the system (QNX Neutrino)
|
You must be root to run this utility. |
shutdown [options]
Neutrino
- -b
- Shut down but don't reboot.
You can't use this option with -n nodename.
- -f
- Shut down fast.
Reduce the amount of time between sending a SIGTERM signal
and a sending a SIGKILL to processes that catch
SIGTERM.
- -n nodename
- Shut down the specified node (default is current node).
- -q
- Be quiet.
- -S type
- The type of shutdown, which must be one of:
- system — shut down the system.
- reboot — reboot the system.
The default is reboot.
- -v
- Be verbose.
The shutdown utility performs an orderly system shutdown as
follows:
- It sends a SIGTERM signal to all
processes listed under /proc.
- It then waits for a period of time (reduced if you specify the
-f option).
- It sends a SIGKILL signal to all remaining processes.
- It reboots the system (unless you specified the -b option).
The interval between the SIGTERM and SIGKILL
signals allows processes that have elected
to catch the SIGTERM signal to perform any cleanup they need
to do before the system is rebooted.
- /var/log/wtmp
- If this file already exists, shutdown adds an
entry to it before shutting down or rebooting the system.
|
The shutdown utility doesn't create /var/log/wtmp
if it doesn't already exist.
This file can quickly become very big, which isn't good on an embedded
system with limited resources. |
phshutdown,
procnto
Logging In, Logging Out, and Shutting Down
in the QNX Neutrino User's Guide
shutdown_system()
in the QNX Neutrino Library Reference