]>
Commit | Line | Data |
---|---|---|
160cd5c9 LP |
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 | ||
5 | <!-- | |
6 | This file is part of systemd. | |
7 | ||
8 | Copyright 2010 Lennart Poettering | |
9 | ||
10 | systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
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 | |
160cd5c9 LP |
13 | (at your option) any later version. |
14 | ||
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 | |
5430f7f2 | 18 | Lesser General Public License for more details. |
160cd5c9 | 19 | |
5430f7f2 | 20 | You should have received a copy of the GNU Lesser General Public License |
160cd5c9 LP |
21 | along with systemd; If not, see <http://www.gnu.org/licenses/>. |
22 | --> | |
23 | ||
dfdebb1b ZJS |
24 | <refentry id="halt" |
25 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
160cd5c9 LP |
26 | |
27 | <refentryinfo> | |
28 | <title>halt</title> | |
29 | <productname>systemd</productname> | |
30 | ||
31 | <authorgroup> | |
32 | <author> | |
33 | <contrib>Developer</contrib> | |
34 | <firstname>Lennart</firstname> | |
35 | <surname>Poettering</surname> | |
36 | <email>lennart@poettering.net</email> | |
37 | </author> | |
38 | </authorgroup> | |
39 | </refentryinfo> | |
40 | ||
41 | <refmeta> | |
42 | <refentrytitle>halt</refentrytitle> | |
43 | <manvolnum>8</manvolnum> | |
44 | </refmeta> | |
45 | ||
46 | <refnamediv> | |
47 | <refname>halt</refname> | |
48 | <refname>poweroff</refname> | |
49 | <refname>reboot</refname> | |
50 | <refpurpose>Halt, power-off or reboot the machine</refpurpose> | |
51 | </refnamediv> | |
52 | ||
53 | <refsynopsisdiv> | |
54 | <cmdsynopsis> | |
55 | <command>halt <arg choice="opt" rep="repeat">OPTIONS</arg></command> | |
56 | </cmdsynopsis> | |
57 | <cmdsynopsis> | |
58 | <command>poweroff <arg choice="opt" rep="repeat">OPTIONS</arg></command> | |
59 | </cmdsynopsis> | |
60 | <cmdsynopsis> | |
61 | <command>reboot <arg choice="opt" rep="repeat">OPTIONS</arg></command> | |
62 | </cmdsynopsis> | |
63 | </refsynopsisdiv> | |
64 | ||
65 | <refsect1> | |
66 | <title>Description</title> | |
67 | ||
68 | <para><command>halt</command>, | |
69 | <command>poweroff</command>, <command>reboot</command> | |
70 | may be used to halt, power-off or reboot the | |
71 | machine.</para> | |
72 | ||
73 | </refsect1> | |
74 | ||
75 | <refsect1> | |
76 | <title>Options</title> | |
77 | ||
78 | <para>The following options are understood:</para> | |
79 | ||
80 | <variablelist> | |
81 | <varlistentry> | |
82 | <term><option>--help</option></term> | |
83 | ||
dfdebb1b | 84 | <xi:include href="standard-options.xml" xpointer="help-text" /> |
160cd5c9 LP |
85 | </varlistentry> |
86 | ||
87 | <varlistentry> | |
88 | <term><option>--halt</option></term> | |
89 | ||
90 | <listitem><para>Halt the machine, | |
a0b78ede | 91 | regardless of which one of the three |
160cd5c9 LP |
92 | commands is invoked.</para></listitem> |
93 | </varlistentry> | |
94 | ||
95 | <varlistentry> | |
96 | <term><option>-p</option></term> | |
97 | <term><option>--poweroff</option></term> | |
98 | ||
99 | <listitem><para>Power-off the machine, | |
a0b78ede | 100 | regardless of which one of the three |
160cd5c9 LP |
101 | commands is invoked.</para></listitem> |
102 | </varlistentry> | |
103 | ||
104 | <varlistentry> | |
105 | <term><option>--reboot</option></term> | |
106 | ||
107 | <listitem><para>Reboot the machine, | |
a0b78ede | 108 | regardless of which one of the three |
160cd5c9 LP |
109 | commands is invoked.</para></listitem> |
110 | </varlistentry> | |
111 | ||
112 | <varlistentry> | |
113 | <term><option>-f</option></term> | |
114 | <term><option>--force</option></term> | |
115 | ||
116 | <listitem><para>Force immediate halt, | |
409dee2e | 117 | power-off, reboot. Do not contact the |
160cd5c9 LP |
118 | init system.</para></listitem> |
119 | </varlistentry> | |
120 | ||
121 | <varlistentry> | |
122 | <term><option>-w</option></term> | |
123 | <term><option>--wtmp-only</option></term> | |
124 | ||
125 | <listitem><para>Only write wtmp | |
409dee2e | 126 | shutdown entry, do not actually halt, |
160cd5c9 LP |
127 | power-off, reboot.</para></listitem> |
128 | </varlistentry> | |
129 | ||
130 | <varlistentry> | |
131 | <term><option>-d</option></term> | |
132 | <term><option>--no-wtmp</option></term> | |
133 | ||
409dee2e | 134 | <listitem><para>Do not write wtmp |
160cd5c9 LP |
135 | shutdown entry.</para></listitem> |
136 | </varlistentry> | |
137 | ||
160cd5c9 LP |
138 | <varlistentry> |
139 | <term><option>--no-wall</option></term> | |
140 | ||
409dee2e | 141 | <listitem><para>Do not send wall |
160cd5c9 LP |
142 | message before |
143 | halt, power-off, reboot.</para></listitem> | |
144 | </varlistentry> | |
145 | </variablelist> | |
146 | </refsect1> | |
147 | ||
148 | <refsect1> | |
149 | <title>Exit status</title> | |
150 | ||
b040723e | 151 | <para>On success, 0 is returned, a non-zero failure |
160cd5c9 LP |
152 | code otherwise.</para> |
153 | </refsect1> | |
154 | ||
155 | <refsect1> | |
156 | <title>Notes</title> | |
157 | ||
158 | <para>These are legacy commands available for | |
159 | compatibility only.</para> | |
160 | </refsect1> | |
161 | ||
162 | <refsect1> | |
163 | <title>See Also</title> | |
164 | <para> | |
165 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
166 | <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
7874bcd6 LP |
167 | <citerefentry><refentrytitle>shutdown</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
168 | <citerefentry><refentrytitle>wall</refentrytitle><manvolnum>1</manvolnum></citerefentry> | |
160cd5c9 LP |
169 | </para> |
170 | </refsect1> | |
171 | ||
172 | </refentry> |