Shut down and reboot the system (QNX Neutrino)
|
You must be root to run this utility. |
shutdown [options]
- -b
- Shut down but do not reboot. This option may not be used with -n nodename.
- -f
- Shut down fast. Send a SIGTERM signal, but wait only one second
before rebooting.
- -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.
- photon -- leave Photon.
- user -- log out.
The default is reboot.
- -v
- Be verbose.
The shutdown utility performs an orderly system shutdown by:
- Causing a SIGTERM signal to be sent to all
processes listed under /proc
- Waiting for ten seconds (or one second if the -f option
is specified)
- Causing a SIGKILL signal to be sent to all remaining processes
- Rebooting the system (unless the -b option is specified).
The ten-second interval allows processes that have elected
to catch the SIGTERM signal to perform any cleanup they need
to do before the system is rebooted.
If you decide to shutdown or reboot the system, shutdown adds a
a line to the /var/log/wtmp if it already exists.
|
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. |
- /var/log/wtmp
- If you shutdown or reboot the system, and this file already exists,
a log entry is added to it.
phshutdown,
procnto
Logging In, Logging Out, and Shutting Down
in the Neutrino User's Guide