1 <html><head><meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"><title>shutdown
</title><meta name=
"generator" content=
"DocBook XSL Stylesheets V1.78.1"></head><body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF"><style>
11 background-color: #c60f0f;
15 h1:hover
> a.headerlink, h2:hover
> a.headerlink, h3:hover
> a.headerlink, dt:hover
> a.headerlink {
18 </style><a href=
"index.html">Index
</a>·
19 <a href=
"systemd.directives.html">Directives
</a>·
20 <a href=
"../python-systemd/index.html">Python
</a>·
21 <a href=
"../libudev/index.html">libudev
</a>·
22 <a href=
"../libudev/index.html">gudev
</a><span style=
"float:right">systemd
219</span><hr><div class=
"refentry"><a name=
"shutdown"></a><div class=
"titlepage"></div><div class=
"refnamediv"><h2>Name
</h2><p>shutdown — Halt, power-off or reboot the machine
</p></div><div class=
"refsynopsisdiv"><h2>Synopsis
</h2><div class=
"cmdsynopsis"><p><code class=
"command">shutdown
</code> [OPTIONS...] [TIME] [WALL...]
</p></div></div><div class=
"refsect1"><a name=
"idm140071385749440"></a><h2 id=
"Description">Description
<a class=
"headerlink" title=
"Permalink to this headline" href=
"#Description">¶
</a></h2><p><span class=
"command"><strong>shutdown
</strong></span> may be used to halt, power-off
23 or reboot the machine.
</p><p>The first argument may be a time string (which is usually
24 "<code class="literal
">now</code>"). Optionally, this may be followed by a
25 wall message to be sent to all logged-in users before going
26 down.
</p><p>The time string may either be in the format
27 "<code class="literal
">hh:mm</code>" for hour/minutes specifying the time to
28 execute the shutdown at, specified in
24h clock format.
29 Alternatively it may be in the syntax
"<code class="literal
">+m</code>"
30 referring to the specified number of minutes m from now.
31 "<code class="literal
">now</code>" is an alias for
"<code class="literal
">+0</code>", i.e.
32 for triggering an immediate shutdown. If no time argument is
33 specified,
"<code class="literal
">+1</code>" is implied.
</p><p>Note that to specify a wall message you must specify a time
34 argument, too.
</p><p>If the time argument is used,
5 minutes before the system
35 goes down the
<code class=
"filename">/run/nologin
</code> file is created to
36 ensure that further logins shall not be allowed.
</p></div><div class=
"refsect1"><a name=
"idm140071385741008"></a><h2 id=
"Options">Options
<a class=
"headerlink" title=
"Permalink to this headline" href=
"#Options">¶
</a></h2><p>The following options are understood:
</p><div class=
"variablelist"><dl class=
"variablelist"><dt id=
"--help"><span class=
"term"><code class=
"option">--help
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#--help">¶
</a></dt><dd><p><a name=
"help-text"></a>Print a short help text and exit.
37 </p></dd><dt id=
"-H"><span class=
"term"><code class=
"option">-H
</code>,
</span><span class=
"term"><code class=
"option">--halt
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#-H">¶
</a></dt><dd><p>Halt the machine.
</p></dd><dt id=
"-P"><span class=
"term"><code class=
"option">-P
</code>,
</span><span class=
"term"><code class=
"option">--poweroff
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#-P">¶
</a></dt><dd><p>Power-off the machine (the
38 default).
</p></dd><dt id=
"-r"><span class=
"term"><code class=
"option">-r
</code>,
</span><span class=
"term"><code class=
"option">--reboot
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#-r">¶
</a></dt><dd><p>Reboot the
39 machine.
</p></dd><dt id=
"-h"><span class=
"term"><code class=
"option">-h
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#-h">¶
</a></dt><dd><p>Equivalent to
<code class=
"option">--poweroff
</code>,
40 unless
<code class=
"option">--halt
</code> is specified.
</p></dd><dt id=
"-k"><span class=
"term"><code class=
"option">-k
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#-k">¶
</a></dt><dd><p>Do not halt, power-off, reboot, just write
41 wall message.
</p></dd><dt id=
"--no-wall"><span class=
"term"><code class=
"option">--no-wall
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#--no-wall">¶
</a></dt><dd><p>Do not send wall
43 halt, power-off, reboot.
</p></dd><dt id=
"-c"><span class=
"term"><code class=
"option">-c
</code></span><a class=
"headerlink" title=
"Permalink to this term" href=
"#-c">¶
</a></dt><dd><p>Cancel a pending shutdown. This may be used
44 cancel the effect of an invocation of
45 <span class=
"command"><strong>shutdown
</strong></span> with a time argument that is not
46 "<code class="literal
">+0</code>" or
47 "<code class="literal
">now</code>".
</p></dd></dl></div></div><div class=
"refsect1"><a name=
"idm140071389620880"></a><h2 id=
"Exit status">Exit status
<a class=
"headerlink" title=
"Permalink to this headline" href=
"#Exit%20status">¶
</a></h2><p>On success,
0 is returned, a non-zero failure code
48 otherwise.
</p></div><div class=
"refsect1"><a name=
"idm140071389619696"></a><h2 id=
"See Also">See Also
<a class=
"headerlink" title=
"Permalink to this headline" href=
"#See%20Also">¶
</a></h2><p>
49 <a href=
"systemd.html"><span class=
"citerefentry"><span class=
"refentrytitle">systemd
</span>(
1)
</span></a>,
50 <a href=
"systemctl.html"><span class=
"citerefentry"><span class=
"refentrytitle">systemctl
</span>(
1)
</span></a>,
51 <a href=
"halt.html"><span class=
"citerefentry"><span class=
"refentrytitle">halt
</span>(
8)
</span></a>,
52 <a href=
"http://man7.org/linux/man-pages/man1/wall.1.html"><span class=
"citerefentry"><span class=
"refentrytitle">wall
</span>(
1)
</span></a>
53 </p></div></div></body></html>