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

183 lines
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of HALT</TITLE>
</HEAD><BODY>
<H1>HALT</H1>
Section: halt (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>
halt, poweroff, reboot - Halt, power-off or reboot the machine
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>halt</B> [OPTIONS...]
<DT id="2">
<B>poweroff</B> [OPTIONS...]
<DT id="3">
<B>reboot</B> [OPTIONS...]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<B>halt</B>,
<B>poweroff</B>,
<B>reboot</B>
<DD>may be used to halt, power-off, or reboot the machine. All three commands take the same options.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
The following options are understood:
<P>
<B>--help</B>
<DL COMPACT><DT id="4"><DD>
Print a short help text and exit.
</DL>
<P>
<B>--halt</B>
<DL COMPACT><DT id="5"><DD>
Halt the machine, regardless of which one of the three commands is invoked.
</DL>
<P>
<B>-p</B>, <B>--poweroff</B>
<DL COMPACT><DT id="6"><DD>
Power-off the machine, regardless of which one of the three commands is invoked.
</DL>
<P>
<B>--reboot</B>
<DL COMPACT><DT id="7"><DD>
Reboot the machine, regardless of which one of the three commands is invoked.
</DL>
<P>
<B>-f</B>, <B>--force</B>
<DL COMPACT><DT id="8"><DD>
Force immediate halt, power-off, or reboot. When specified once, this results in an immediate but clean shutdown by the system manager. When specified twice, this results in an immediate shutdown without contacting the system manager. See the description of
<B>--force</B>
in
<B><A HREF="/cgi-bin/man/man2html?1+systemctl">systemctl</A></B>(1)
for more details.
</DL>
<P>
<B>-w</B>, <B>--wtmp-only</B>
<DL COMPACT><DT id="9"><DD>
Only write wtmp shutdown entry, do not actually halt, power-off, reboot.
</DL>
<P>
<B>-d</B>, <B>--no-wtmp</B>
<DL COMPACT><DT id="10"><DD>
Do not write wtmp shutdown entry.
</DL>
<P>
<B>-n</B>, <B>--no-sync</B>
<DL COMPACT><DT id="11"><DD>
Don't sync hard disks/storage media before halt, power-off, reboot.
</DL>
<P>
<B>--no-wall</B>
<DL COMPACT><DT id="12"><DD>
Do not send wall message before halt, power-off, reboot.
</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>NOTES</H2>
<P>
These commands are implemented in a way that preserves basic compatibility with the original SysV commands.
<B><A HREF="/cgi-bin/man/man2html?1+systemctl">systemctl</A></B>(1)
verbs
<B>halt</B>,
<B>poweroff</B>,
<B>reboot</B>
provide the same functionality with some additional features.
<P>
Note that on many SysV systems
<B>halt</B>
used to be synonymous to
<B>poweroff</B>, i.e. both commands would equally result in powering the machine off. systemd is more accurate here, and
<B>halt</B>
results in halting the machine only (leaving power on), and
<B>poweroff</B>
is required to actually power it off.
<A NAME="lbAH">&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+shutdown">shutdown</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="13"><A HREF="#lbAB">NAME</A><DD>
<DT id="14"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="15"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="16"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="17"><A HREF="#lbAF">EXIT STATUS</A><DD>
<DT id="18"><A HREF="#lbAG">NOTES</A><DD>
<DT id="19"><A HREF="#lbAH">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:12 GMT, March 31, 2021
</BODY>
</HTML>