shutdown

Shut down and reboot the system (QNX Neutrino)


Note: You must be root to run this utility.

Syntax:

shutdown [options] 

Runs on:

Neutrino

Options:

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

The default is reboot.

-v
Be verbose.

Description:

The shutdown utility performs an orderly system shutdown as follows:

  1. It sends a SIGTERM signal to all processes listed under /proc.
  2. It then waits for a period of time (reduced if you specify the -f option).
  3. It sends a SIGKILL signal to all remaining processes.
  4. 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.

Files:

/var/log/wtmp
If this file already exists, shutdown adds an entry to it before shutting down or rebooting the system.

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.

See also:

phshutdown, procnto

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

shutdown_system() in the QNX Neutrino Library Reference