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" [
4 <!ENTITY % entities SYSTEM
"custom-entities.ent" >
9 This file is part of systemd.
11 Copyright 2010 Lennart Poettering
13 systemd is free software; you can redistribute it and/or modify it
14 under the terms of the GNU Lesser General Public License as published by
15 the Free Software Foundation; either version 2.1 of the License, or
16 (at your option) any later version.
18 systemd is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
23 You should have received a copy of the GNU Lesser General Public License
24 along with systemd; If not, see <http://www.gnu.org/licenses/>.
28 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
32 <productname>systemd
</productname>
36 <contrib>Developer
</contrib>
37 <firstname>Lennart
</firstname>
38 <surname>Poettering
</surname>
39 <email>lennart@poettering.net
</email>
45 <refentrytitle>halt
</refentrytitle>
46 <manvolnum>8</manvolnum>
50 <refname>halt
</refname>
51 <refname>poweroff
</refname>
52 <refname>reboot
</refname>
53 <refpurpose>Halt, power-off or reboot the machine
</refpurpose>
58 <command>halt
</command>
59 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
62 <command>poweroff
</command>
63 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
66 <command>reboot
</command>
67 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
72 <title>Description
</title>
74 <para><command>halt
</command>,
<command>poweroff
</command>,
75 <command>reboot
</command> may be used to halt, power-off or reboot
81 <title>Options
</title>
83 <para>The following options are understood:
</para>
87 <term><option>--help
</option></term>
89 <xi:include href=
"standard-options.xml" xpointer=
"help-text" />
93 <term><option>--halt
</option></term>
95 <listitem><para>Halt the machine, regardless of which one of
96 the three commands is invoked.
</para></listitem>
100 <term><option>-p
</option></term>
101 <term><option>--poweroff
</option></term>
103 <listitem><para>Power-off the machine, regardless of which one
104 of the three commands is invoked.
</para></listitem>
108 <term><option>--reboot
</option></term>
110 <listitem><para>Reboot the machine, regardless of which one of
111 the three commands is invoked.
</para></listitem>
115 <term><option>-f
</option></term>
116 <term><option>--force
</option></term>
118 <listitem><para>Force immediate halt, power-off, reboot. Do
119 not contact the init system.
</para></listitem>
123 <term><option>-w
</option></term>
124 <term><option>--wtmp-only
</option></term>
126 <listitem><para>Only write wtmp shutdown entry, do not
127 actually halt, power-off, reboot.
</para></listitem>
131 <term><option>-d
</option></term>
132 <term><option>--no-wtmp
</option></term>
134 <listitem><para>Do not write wtmp shutdown
135 entry.
</para></listitem>
139 <term><option>--no-wall
</option></term>
141 <listitem><para>Do not send wall message before halt,
142 power-off, reboot.
</para></listitem>
148 <title>Exit status
</title>
150 <para>On success,
0 is returned, a non-zero failure code
157 <para>These are legacy commands available for compatibility
162 <title>See Also
</title>
164 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
165 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
166 <citerefentry><refentrytitle>shutdown
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
167 <citerefentry project='man-pages'
><refentrytitle>wall
</refentrytitle><manvolnum>1</manvolnum></citerefentry>