2005-05-02 15:01:42 +02:00
|
|
|
.TH SHUTDOWN 8
|
|
|
|
.SH NAME
|
|
|
|
shutdown \- graciously close the system down
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B shutdown
|
2012-11-22 17:30:22 +01:00
|
|
|
.RB [ \-hrRmkpd ]
|
2005-05-02 15:01:42 +02:00
|
|
|
.RI [ time-specification
|
|
|
|
.RI [ message ]]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B Shutdown
|
|
|
|
is a program which allows a system operator to close down the system
|
|
|
|
in an nice way.
|
|
|
|
.B Shutdown
|
|
|
|
informs the users why and when the system is going down. This warning
|
|
|
|
is issued 10 minutes before shutdown time and every minute in the last
|
|
|
|
5 minutes. At this time (5 minutes),
|
|
|
|
.B shutdown
|
|
|
|
creates a file
|
|
|
|
.B /etc/nologin
|
|
|
|
to prevent new users from logging in.
|
|
|
|
.PP
|
|
|
|
.B Shutdown
|
|
|
|
keeps a logfile of shutdowns. Every shutdown is registered in
|
|
|
|
.BR /usr/adm/wtmp ,
|
|
|
|
if this file exists, and by
|
|
|
|
.BR syslog (3)
|
|
|
|
(level
|
|
|
|
.BR auth . notice ).
|
|
|
|
After these actions, a call is done to
|
|
|
|
.BR reboot (2)
|
|
|
|
which actually brings the system down.
|
|
|
|
.PP
|
|
|
|
.I Time-specification
|
|
|
|
may be something like
|
|
|
|
.BR 15:00 ,
|
|
|
|
.BR 15.00 ,
|
|
|
|
.BR +15 ,
|
|
|
|
or
|
|
|
|
.B now
|
|
|
|
for a shutdown at 3pm (twice), 15 minutes from now, or immediately.
|
|
|
|
.PP
|
|
|
|
The message may be used to describe why the system is going down, it may
|
|
|
|
also be typed on standard input with the
|
|
|
|
.B \-m
|
|
|
|
option.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.B \-h
|
|
|
|
This flag prevents the system from rebooting after the shutdown. The
|
|
|
|
system can now be powered off. This is the default.
|
|
|
|
.TP
|
|
|
|
.B \-r
|
|
|
|
This flag indicates that the system should reboot after shutting down.
|
|
|
|
.TP
|
|
|
|
.B \-R
|
2012-11-22 17:30:22 +01:00
|
|
|
Reboot the system by resetting it. With
|
2005-05-02 15:01:42 +02:00
|
|
|
.B \-R
|
|
|
|
the system will receive a hardware reset.
|
|
|
|
.TP
|
2012-11-22 17:30:22 +01:00
|
|
|
.B \-p
|
|
|
|
Attempt to power off the machine after shutting down; reset if that
|
|
|
|
is not possible on the current hardware.
|
2010-08-30 21:01:58 +02:00
|
|
|
.TP
|
2012-11-22 17:30:22 +01:00
|
|
|
.B \-d
|
|
|
|
Default CTRL-ALT-DEL shutdown.
|
2005-05-02 15:01:42 +02:00
|
|
|
.TP
|
|
|
|
.B \-m
|
|
|
|
Allows the operator to type a shutdown message on standard input, that will
|
|
|
|
be added to the messages displayed on all terminals.
|
|
|
|
.TP
|
|
|
|
.B \-k
|
|
|
|
This option gives the possibility of terminating an already started
|
|
|
|
shutdown. This is only possible if shutdown time has not yet arrived.
|
|
|
|
.TP
|
|
|
|
.B \-C
|
|
|
|
Check if the system crashed. This option is not used at shutdown time,
|
|
|
|
but at reboot time. It tells if the file systems should be checked by
|
|
|
|
testing if the last entry in the wtmp file is a shutdown entry. (A
|
|
|
|
crude replacement for a file system clean flag.)
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR reboot (2),
|
|
|
|
.BR syslog (3),
|
|
|
|
.BR halt (8),
|
|
|
|
.BR boot (8).
|
|
|
|
.SH AUTHOR
|
|
|
|
Edvard Tuinder (v892231@si.hhs.NL)
|