1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 SPDX-License-Identifier: LGPL-2.1+
8 Copyright 2010 Lennart Poettering
12 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
16 <productname>systemd
</productname>
20 <contrib>Developer
</contrib>
21 <firstname>Lennart
</firstname>
22 <surname>Poettering
</surname>
23 <email>lennart@poettering.net
</email>
29 <refentrytitle>halt
</refentrytitle>
30 <manvolnum>8</manvolnum>
34 <refname>halt
</refname>
35 <refname>poweroff
</refname>
36 <refname>reboot
</refname>
37 <refpurpose>Halt, power-off or reboot the machine
</refpurpose>
42 <command>halt
</command>
43 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
46 <command>poweroff
</command>
47 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
50 <command>reboot
</command>
51 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
56 <title>Description
</title>
58 <para><command>halt
</command>,
<command>poweroff
</command>,
59 <command>reboot
</command> may be used to halt, power-off or reboot
65 <title>Options
</title>
67 <para>The following options are understood:
</para>
71 <term><option>--help
</option></term>
73 <xi:include href=
"standard-options.xml" xpointer=
"help-text" />
77 <term><option>--halt
</option></term>
79 <listitem><para>Halt the machine, regardless of which one of
80 the three commands is invoked.
</para></listitem>
84 <term><option>-p
</option></term>
85 <term><option>--poweroff
</option></term>
87 <listitem><para>Power-off the machine, regardless of which one
88 of the three commands is invoked.
</para></listitem>
92 <term><option>--reboot
</option></term>
94 <listitem><para>Reboot the machine, regardless of which one of
95 the three commands is invoked.
</para></listitem>
99 <term><option>-f
</option></term>
100 <term><option>--force
</option></term>
102 <listitem><para>Force immediate halt, power-off, or reboot. When
103 specified once, this results in an immediate but clean shutdown
104 by the system manager. When specified twice, this results in an
105 immediate shutdown without contacting the system manager. See the
106 description of
<option>--force
</option> in
107 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
108 for more details.
</para></listitem>
112 <term><option>-w
</option></term>
113 <term><option>--wtmp-only
</option></term>
115 <listitem><para>Only write wtmp shutdown entry, do not
116 actually halt, power-off, reboot.
</para></listitem>
120 <term><option>-d
</option></term>
121 <term><option>--no-wtmp
</option></term>
123 <listitem><para>Do not write wtmp shutdown
124 entry.
</para></listitem>
128 <term><option>-n
</option></term>
129 <term><option>--no-sync
</option></term>
131 <listitem><para>Don't sync hard disks/storage media before
132 halt, power-off, reboot.
</para></listitem>
136 <term><option>--no-wall
</option></term>
138 <listitem><para>Do not send wall message before halt,
139 power-off, reboot.
</para></listitem>
145 <title>Exit status
</title>
147 <para>On success,
0 is returned, a non-zero failure code
154 <para>These commands are implemented in a way that preserves compatibility with
155 the original SysV commands.
156 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>
157 verbs
<command>halt
</command>,
<command>poweroff
</command>,
158 <command>reboot
</command> provide the same functionality with some additional
163 <title>See Also
</title>
165 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
166 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
167 <citerefentry><refentrytitle>shutdown
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
168 <citerefentry project='man-pages'
><refentrytitle>wall
</refentrytitle><manvolnum>1</manvolnum></citerefentry>