]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/halt.xml
tree-wide: remove Lennart's copyright lines
[thirdparty/systemd.git] / man / halt.xml
CommitLineData
160cd5c9
LP
1<?xml version='1.0'?> <!--*-nxml-*-->
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
160cd5c9
LP
4
5<!--
572eb058 6 SPDX-License-Identifier: LGPL-2.1+
160cd5c9
LP
7-->
8
dfdebb1b 9<refentry id="halt"
798d3a52
ZJS
10 xmlns:xi="http://www.w3.org/2001/XInclude">
11
12 <refentryinfo>
13 <title>halt</title>
14 <productname>systemd</productname>
15
16 <authorgroup>
17 <author>
18 <contrib>Developer</contrib>
19 <firstname>Lennart</firstname>
20 <surname>Poettering</surname>
21 <email>lennart@poettering.net</email>
22 </author>
23 </authorgroup>
24 </refentryinfo>
25
26 <refmeta>
27 <refentrytitle>halt</refentrytitle>
28 <manvolnum>8</manvolnum>
29 </refmeta>
30
31 <refnamediv>
32 <refname>halt</refname>
33 <refname>poweroff</refname>
34 <refname>reboot</refname>
35 <refpurpose>Halt, power-off or reboot the machine</refpurpose>
36 </refnamediv>
37
38 <refsynopsisdiv>
39 <cmdsynopsis>
40 <command>halt</command>
41 <arg choice="opt" rep="repeat">OPTIONS</arg>
42 </cmdsynopsis>
43 <cmdsynopsis>
44 <command>poweroff</command>
45 <arg choice="opt" rep="repeat">OPTIONS</arg>
46 </cmdsynopsis>
47 <cmdsynopsis>
48 <command>reboot</command>
49 <arg choice="opt" rep="repeat">OPTIONS</arg>
50 </cmdsynopsis>
51 </refsynopsisdiv>
52
53 <refsect1>
54 <title>Description</title>
55
56 <para><command>halt</command>, <command>poweroff</command>,
57 <command>reboot</command> may be used to halt, power-off or reboot
58 the machine.</para>
59
60 </refsect1>
61
62 <refsect1>
63 <title>Options</title>
64
65 <para>The following options are understood:</para>
66
67 <variablelist>
68 <varlistentry>
69 <term><option>--help</option></term>
70
71 <xi:include href="standard-options.xml" xpointer="help-text" />
72 </varlistentry>
73
74 <varlistentry>
75 <term><option>--halt</option></term>
76
77 <listitem><para>Halt the machine, regardless of which one of
78 the three commands is invoked.</para></listitem>
79 </varlistentry>
80
81 <varlistentry>
82 <term><option>-p</option></term>
83 <term><option>--poweroff</option></term>
84
85 <listitem><para>Power-off the machine, regardless of which one
86 of the three commands is invoked.</para></listitem>
87 </varlistentry>
88
89 <varlistentry>
90 <term><option>--reboot</option></term>
91
92 <listitem><para>Reboot the machine, regardless of which one of
93 the three commands is invoked.</para></listitem>
94 </varlistentry>
95
96 <varlistentry>
97 <term><option>-f</option></term>
98 <term><option>--force</option></term>
99
5d9adb5b
ZJS
100 <listitem><para>Force immediate halt, power-off, or reboot. When
101 specified once, this results in an immediate but clean shutdown
102 by the system manager. When specified twice, this results in an
103 immediate shutdown without contacting the system manager. See the
104 description of <option>--force</option> in
105 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
106 for more details.</para></listitem>
798d3a52
ZJS
107 </varlistentry>
108
109 <varlistentry>
110 <term><option>-w</option></term>
111 <term><option>--wtmp-only</option></term>
112
113 <listitem><para>Only write wtmp shutdown entry, do not
114 actually halt, power-off, reboot.</para></listitem>
115 </varlistentry>
116
117 <varlistentry>
118 <term><option>-d</option></term>
119 <term><option>--no-wtmp</option></term>
120
121 <listitem><para>Do not write wtmp shutdown
122 entry.</para></listitem>
123 </varlistentry>
f3f054f0
TB
124
125 <varlistentry>
126 <term><option>-n</option></term>
127 <term><option>--no-sync</option></term>
128
129 <listitem><para>Don't sync hard disks/storage media before
130 halt, power-off, reboot.</para></listitem>
131 </varlistentry>
798d3a52
ZJS
132
133 <varlistentry>
134 <term><option>--no-wall</option></term>
135
136 <listitem><para>Do not send wall message before halt,
137 power-off, reboot.</para></listitem>
138 </varlistentry>
139 </variablelist>
140 </refsect1>
141
142 <refsect1>
143 <title>Exit status</title>
144
145 <para>On success, 0 is returned, a non-zero failure code
146 otherwise.</para>
147 </refsect1>
148
149 <refsect1>
150 <title>Notes</title>
151
1b2ad5d9 152 <para>These commands are implemented in a way that preserves compatibility with
2e772f30
ZJS
153 the original SysV commands.
154 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
155 verbs <command>halt</command>, <command>poweroff</command>,
156 <command>reboot</command> provide the same functionality with some additional
157 features.</para>
798d3a52
ZJS
158 </refsect1>
159
160 <refsect1>
161 <title>See Also</title>
162 <para>
163 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
164 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
165 <citerefentry><refentrytitle>shutdown</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
166 <citerefentry project='man-pages'><refentrytitle>wall</refentrytitle><manvolnum>1</manvolnum></citerefentry>
167 </para>
168 </refsect1>
160cd5c9
LP
169
170</refentry>