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
11 <refentry id=
"shutdown"
12 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
15 <title>shutdown
</title>
16 <productname>systemd
</productname>
20 <contrib>Developer
</contrib>
21 <firstname>Lennart
</firstname>
22 <surname>Poettering
</surname>
23 <email>lennart@poettering.net
</email>
29 <refentrytitle>shutdown
</refentrytitle>
30 <manvolnum>8</manvolnum>
34 <refname>shutdown
</refname>
35 <refpurpose>Halt, power-off or reboot the machine
</refpurpose>
40 <command>shutdown
</command>
41 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
42 <arg choice=
"opt">TIME
</arg>
43 <arg choice=
"opt" rep=
"repeat">WALL
</arg>
48 <title>Description
</title>
50 <para><command>shutdown
</command> may be used to halt, power-off
51 or reboot the machine.
</para>
53 <para>The first argument may be a time string (which is usually
54 <literal>now
</literal>). Optionally, this may be followed by a
55 wall message to be sent to all logged-in users before going
58 <para>The time string may either be in the format
59 <literal>hh:mm
</literal> for hour/minutes specifying the time to
60 execute the shutdown at, specified in
24h clock format.
61 Alternatively it may be in the syntax
<literal>+m
</literal>
62 referring to the specified number of minutes m from now.
63 <literal>now
</literal> is an alias for
<literal>+
0</literal>, i.e.
64 for triggering an immediate shutdown. If no time argument is
65 specified,
<literal>+
1</literal> is implied.
</para>
67 <para>Note that to specify a wall message you must specify a time
70 <para>If the time argument is used,
5 minutes before the system
71 goes down the
<filename>/run/nologin
</filename> file is created to
72 ensure that further logins shall not be allowed.
</para>
76 <title>Options
</title>
78 <para>The following options are understood:
</para>
82 <term><option>--help
</option></term>
84 <xi:include href=
"standard-options.xml" xpointer=
"help-text" />
88 <term><option>-H
</option></term>
89 <term><option>--halt
</option></term>
91 <listitem><para>Halt the machine.
</para></listitem>
95 <term><option>-P
</option></term>
96 <term><option>--poweroff
</option></term>
98 <listitem><para>Power-off the machine (the
99 default).
</para></listitem>
103 <term><option>-r
</option></term>
104 <term><option>--reboot
</option></term>
106 <listitem><para>Reboot the
107 machine.
</para></listitem>
111 <term><option>-h
</option></term>
113 <listitem><para>Equivalent to
<option>--poweroff
</option>,
114 unless
<option>--halt
</option> is specified.
</para></listitem>
118 <term><option>-k
</option></term>
120 <listitem><para>Do not halt, power-off, reboot, just write
121 wall message.
</para></listitem>
125 <term><option>--no-wall
</option></term>
127 <listitem><para>Do not send wall
129 halt, power-off, reboot.
</para></listitem>
133 <term><option>-c
</option></term>
135 <listitem><para>Cancel a pending shutdown. This may be used
136 cancel the effect of an invocation of
137 <command>shutdown
</command> with a time argument that is not
138 <literal>+
0</literal> or
139 <literal>now
</literal>.
</para></listitem>
146 <title>Exit status
</title>
148 <para>On success,
0 is returned, a non-zero failure code
153 <title>See Also
</title>
155 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
156 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
157 <citerefentry><refentrytitle>halt
</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
158 <citerefentry project='man-pages'
><refentrytitle>wall
</refentrytitle><manvolnum>1</manvolnum></citerefentry>