175 lines
3.3 KiB
HTML
175 lines
3.3 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of SHUTDOWN</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>SHUTDOWN</H1>
|
|
Section: shutdown (8)<BR>Updated: <BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
shutdown - Halt, power-off or reboot the machine
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>shutdown</B> [OPTIONS...] [TIME] [WALL...]
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<B>shutdown</B>
|
|
<DD>may be used to halt, power-off or reboot the machine.
|
|
<P>
|
|
|
|
The first argument may be a time string (which is usually
|
|
"now"). Optionally, this may be followed by a wall message to be sent to all logged-in users before going down.
|
|
<P>
|
|
|
|
The time string may either be in the format
|
|
"hh:mm"
|
|
for hour/minutes specifying the time to execute the shutdown at, specified in 24h clock format. Alternatively it may be in the syntax
|
|
"+m"
|
|
referring to the specified number of minutes m from now.
|
|
"now"
|
|
is an alias for
|
|
"+0", i.e. for triggering an immediate shutdown. If no time argument is specified,
|
|
"+1"
|
|
is implied.
|
|
<P>
|
|
|
|
Note that to specify a wall message you must specify a time argument, too.
|
|
<P>
|
|
|
|
If the time argument is used, 5 minutes before the system goes down the
|
|
/run/nologin
|
|
file is created to ensure that further logins shall not be allowed.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
The following options are understood:
|
|
<P>
|
|
|
|
<B>--help</B>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
Print a short help text and exit.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-H</B>, <B>--halt</B>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
Halt the machine.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-P</B>, <B>--poweroff</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Power-off the machine (the default).
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-r</B>, <B>--reboot</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Reboot the machine.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-h</B>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
Equivalent to
|
|
<B>--poweroff</B>, unless
|
|
<B>--halt</B>
|
|
is specified.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-k</B>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
Do not halt, power-off, reboot, just write wall message.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>--no-wall</B>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
Do not send wall message before halt, power-off, reboot.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-c</B>
|
|
<DL COMPACT><DT id="9"><DD>
|
|
Cancel a pending shutdown. This may be used to cancel the effect of an invocation of
|
|
<B>shutdown</B>
|
|
with a time argument that is not
|
|
"+0"
|
|
or
|
|
"now".
|
|
</DL>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
<P>
|
|
|
|
On success, 0 is returned, a non-zero failure code otherwise.
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemctl">systemctl</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+halt">halt</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+wall">wall</A></B>(1)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="13"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="14"><A HREF="#lbAF">EXIT STATUS</A><DD>
|
|
<DT id="15"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:16 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|