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 This file is part of systemd.
8 Copyright 2010 Lennart Poettering
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
29 <productname>systemd
</productname>
33 <contrib>Developer
</contrib>
34 <firstname>Lennart
</firstname>
35 <surname>Poettering
</surname>
36 <email>lennart@poettering.net
</email>
42 <refentrytitle>halt
</refentrytitle>
43 <manvolnum>8</manvolnum>
47 <refname>halt
</refname>
48 <refname>poweroff
</refname>
49 <refname>reboot
</refname>
50 <refpurpose>Halt, power-off or reboot the machine
</refpurpose>
55 <command>halt
</command>
56 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
59 <command>poweroff
</command>
60 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
63 <command>reboot
</command>
64 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
69 <title>Description
</title>
71 <para><command>halt
</command>,
<command>poweroff
</command>,
72 <command>reboot
</command> may be used to halt, power-off or reboot
78 <title>Options
</title>
80 <para>The following options are understood:
</para>
84 <term><option>--help
</option></term>
86 <xi:include href=
"standard-options.xml" xpointer=
"help-text" />
90 <term><option>--halt
</option></term>
92 <listitem><para>Halt the machine, regardless of which one of
93 the three commands is invoked.
</para></listitem>
97 <term><option>-p
</option></term>
98 <term><option>--poweroff
</option></term>
100 <listitem><para>Power-off the machine, regardless of which one
101 of the three commands is invoked.
</para></listitem>
105 <term><option>--reboot
</option></term>
107 <listitem><para>Reboot the machine, regardless of which one of
108 the three commands is invoked.
</para></listitem>
112 <term><option>-f
</option></term>
113 <term><option>--force
</option></term>
115 <listitem><para>Force immediate halt, power-off, reboot. Do
116 not contact the init system.
</para></listitem>
120 <term><option>-w
</option></term>
121 <term><option>--wtmp-only
</option></term>
123 <listitem><para>Only write wtmp shutdown entry, do not
124 actually halt, power-off, reboot.
</para></listitem>
128 <term><option>-d
</option></term>
129 <term><option>--no-wtmp
</option></term>
131 <listitem><para>Do not write wtmp shutdown
132 entry.
</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 are legacy commands available for compatibility
159 <title>See Also
</title>
161 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
162 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
163 <citerefentry><refentrytitle>shutdown
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
164 <citerefentry project='man-pages'
><refentrytitle>wall
</refentrytitle><manvolnum>1</manvolnum></citerefentry>