Annotation of cci/usr/src/man/man8/shutdown.8, revision 1.1.1.1

1.1       root        1: .TH SHUTDOWN 8 "1 April 1981"
                      2: .UC 4
                      3: .SH NAME
                      4: shutdown \- close down the system at a given time
                      5: .SH SYNOPSIS
                      6: .B /etc/shutdown
                      7: [
                      8: .B \-k
                      9: ] [
                     10: .B \-r
                     11: ] [
                     12: .B \-h
                     13: ]
                     14: time [ warning-message ... ]
                     15: .SH DESCRIPTION
                     16: .I Shutdown
                     17: provides an automated shutdown procedure which a super-user
                     18: can use to notify users
                     19: nicely when the system is shutting down, saving them from
                     20: system administrators, hackers, and gurus, who would otherwise
                     21: not bother with niceties.
                     22: .LP
                     23: .I Time
                     24: is the time at which
                     25: .I shutdown
                     26: will bring the system down and
                     27: may be the word
                     28: .B now
                     29: (indicating an immediate shutdown)
                     30: or specify a future time in one of two formats:
                     31: .BR + number
                     32: and
                     33: .RB hour : min.
                     34: The first form brings the system down in
                     35: .I number
                     36: minutes
                     37: and the second brings the system down at the time of day indicated
                     38: (as a 24\-hour clock).
                     39: .PP
                     40: At intervals which get closer together as apocalypse approaches,
                     41: warning messages are displayed at the terminals of all users on the
                     42: system.  Five minutes before shutdown, or immediately if
                     43: shutdown is in less than 5 minutes, logins are disabled by
                     44: creating
                     45: /etc/nologin
                     46: and writing a message there.
                     47: If this file exists when a user attempts to log in,
                     48: .IR login (1)
                     49: prints its contents
                     50: and exits.
                     51: The file is removed just before
                     52: .I shutdown
                     53: exits.
                     54: .PP
                     55: At shutdown time a
                     56: message is written in the file /usr/adm/shutdownlog, containing the
                     57: time of shutdown, who ran shutdown and the reason.
                     58: Then a terminate signal is sent at
                     59: .I init
                     60: to bring the system down to single-user state.
                     61: Alternatively, if
                     62: .B \-r,
                     63: .B \-h,
                     64: or
                     65: .B \-k
                     66: was used, then
                     67: .I shutdown
                     68: will exec
                     69: .IR reboot (8),
                     70: .IR halt (8),
                     71: or avoid shutting the system down (respectively).
                     72: (If it isn't obvious,
                     73: .B \-k
                     74: is to make people
                     75: .I think
                     76: the system is going down!)
                     77: .PP
                     78: The time of the shutdown and the warning message
                     79: are placed in /etc/nologin and should be used to
                     80: inform the users about when the system will be back up
                     81: and why it is going down (or anything else).
                     82: .SH FILES
                     83: .DT
                     84: /etc/nologin   tells login not to let anyone log in
                     85: .br
                     86: /usr/adm/shutdownlog   log file for successful shutdowns.
                     87: .SH "SEE ALSO"
                     88: login(1), reboot(8)
                     89: .SH BUGS
                     90: Only allows you to kill the system between now and 23:59 if
                     91: you use the absolute time for shutdown.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.