UNIX system shutdown/reboot


UNIX systems require an orderly shutdown procedure to cleanly terminate services and flush filesystem data.

Rebooting a UNIX system is usually only necessary to update the OS kernel or certain boot-time configuration parameters, or as a last resort to deal with certain kinds of extreme hosage.

In general there is no need to reboot to update service configurations; individual system services can be restarted individually.

On a multi-user system with interactive logins, it's polite to give some advance notice for shutdowns so users can finish their sessions cleanly.

Common UNIX shutdown/reboot commands:

halt
Halts system immediately (without rebooting), maybe not in the cleanest way
reboot
Reboots system immediately, maybe not in the cleanest way
shutdown -h time message
Halts system with some advance warning, i.e. shutdown -h +5 "Down for power outage" halts the system in 5 minutes and sends the message to all logged-in users
shutdown -r time message
Reboots system with some advanced warning

Next ->


Steve VanDevender
Last modified: Tue Jul 1 13:17:23 PDT 2003