stopping and restarting the system
flush the file system cache to disk, execute the
scripts specified by the
variable defined in
in a reverse order, run the
system shutdown script, send all running processes a
(and subsequently a
), and, respectively, halt or restart the
system. The action is logged, including entering a shutdown record into the
login accounting file.
The options are as follows:
- Causes system to create a dump before rebooting. This option is useful for
debugging system dump procedures or capturing the state of a corrupted or
misbehaving system. See savecore(8)
for information on how to recover this dump.
- Prevent file system cache from being flushed. This option should probably
not be used.
- Causes the system to power down, if it is being halted, and the hardware
supports automatic power down.
- Quick. The system is halted or restarted quickly and ungracefully, and
only the flushing of the file system cache is performed. This option
should probably not be used.
Normally, the shutdown(8)
utility is used when the system needs to be halted or restarted, giving
users advance warning of their impending doom.
command appeared in
Version 6 AT&T UNIX