Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ shutdown(8) — Duplix 4.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

login(1)

reboot(8)

fastboot(8)

SHUTDOWN(8)  —  Unix Programmer’s Manual

NAME

shutdown − close down the system at a given time

SYNOPSIS

/etc/shutdown [ options ] time [ warning-message ...  ]

DESCRIPTION

Shutdown provides an automated shutdown procedure which a super-user can use to notify users nicely when the system is shutting down, saving them from system administrators, hackers, and gurus, who would otherwise not bother with niceties. 

Time is the time at which shutdown will bring the system down and may be the word now (indicating an immediate shutdown) or specify a future time in one of two formats: +number and hour:min.  The first form brings the system down in number minutes and the second brings the system down at the time of day indicated (as a 24−hour clock). 

At intervals which get closer together as apocalypse approaches, warning messages are displayed at the terminals of all users on the system.  Five minutes before shutdown, or immediately if shutdown is in less than 5 minutes, logins are disabled by creating /etc/nologin and writing a message there.  If this file exists when a user attempts to log in, login(1) prints its contents and exits.  The file is removed just before shutdown exits. 

At shutdown time a message is written in the system log, containing the time of shutdown, who ran shutdown and the reason.  Then a terminate signal is sent to init to bring the system down to single-user state. 

The time of the shutdown and the warning message are placed in /etc/nologin and should be used to inform the users about when the system will be back up and why it is going down (or anything else). 

OPTIONS

−f Makes shutdown arrange, in the manner of fastboot(8), that when the system is rebooted the file systems will not be checked. 

−h Tells shutdown to exec halt(8). 

−k Tells shutdown not to shutdown.  You can use this option to make users think the system is shutting down. 

−n Prevents the normal sync(2) before stopping. 

−r Tells shutdown to exec rebooot(8). 

FILES

/etc/nologintells login not to let anyone log in

SEE ALSO

login(1), reboot(8), fastboot(8)

BUGS

Shutdown lets you to kill the system only between now and 23:59 if you use the absolute time for shutdown. 

4th Berkeley Distribution  —  May 26, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026