man-pages/man8/shutdown.8.html
2021-03-31 01:06:50 +01:00

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">&nbsp;</A>
<H2>NAME</H2>
shutdown - Halt, power-off or reboot the machine
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>shutdown</B> [OPTIONS...] [TIME] [WALL...]
</DL>
<A NAME="lbAD">&nbsp;</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
&quot;now&quot;). 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
&quot;hh:mm&quot;
for hour/minutes specifying the time to execute the shutdown at, specified in 24h clock format. Alternatively it may be in the syntax
&quot;+m&quot;
referring to the specified number of minutes m from now.
&quot;now&quot;
is an alias for
&quot;+0&quot;, i.e. for triggering an immediate shutdown. If no time argument is specified,
&quot;+1&quot;
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">&nbsp;</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
&quot;+0&quot;
or
&quot;now&quot;.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXIT STATUS</H2>
<P>
On success, 0 is returned, a non-zero failure code otherwise.
<A NAME="lbAG">&nbsp;</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">&nbsp;</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>