[Previous] [Contents] [Index] [Next]


Shut down and reboot the system (QNX Neutrino)


Note: You must be root to run this utility.

shutdown [options] 


Shut down but do not reboot. This option may not be used with -n nodename.
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).
Be quiet.
-S type
The type of shutdown, which must be one of:

The default is reboot.

Be verbose.


The shutdown utility performs an orderly system shutdown by:

  1. Causing a SIGTERM signal to be sent to all processes listed under /proc
  2. Waiting for ten seconds (or one second if the -f option is specified)
  3. Causing a SIGKILL signal to be sent to all remaining processes
  4. 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.

Note: 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.


If you shutdown or reboot the system, and this file already exists, a log entry is added to it.

See also:

phshutdown, procnto

Logging In, Logging Out, and Shutting Down in the Neutrino User's Guide

[Previous] [Contents] [Index] [Next]