]> git.proxmox.com Git - systemd.git/blame - man/shutdown.html
Imported Upstream version 218
[systemd.git] / man / shutdown.html
CommitLineData
663996b3
MS
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>
2 a.headerlink {
3 color: #c60f0f;
4 font-size: 0.8em;
5 padding: 0 4px 0 4px;
6 text-decoration: none;
7 visibility: hidden;
8 }
9
10 a.headerlink:hover {
11 background-color: #c60f0f;
12 color: white;
13 }
14
15 h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
16 visibility: visible;
17 }
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>·
f47781d8 22 <a href="../libudev/index.html">gudev </a><span style="float:right">systemd 218</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 [OPTIONS...] [TIME] [WALL...]</code> </p></div></div><div class="refsect1"><a name="idm139839027990128"></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,
663996b3 23 power-off or reboot the machine.</p><p>The first argument may be a time string (which
14228c0d 24 is usually "<code class="literal">now</code>"). Optionally, this
663996b3
MS
25 may be followed by a wall message to be sent to all
26 logged-in users before going down.</p><p>The time string may either be in the format
14228c0d 27 "<code class="literal">hh:mm</code>" for hour/minutes specifying
663996b3
MS
28 the time to execute the shutdown at, specified in 24h
29 clock format. Alternatively it may be in the syntax
14228c0d
MB
30 "<code class="literal">+m</code>" referring to the specified
31 number of minutes m from now. "<code class="literal">now</code>"
32 is an alias for "<code class="literal">+0</code>", i.e. for
663996b3 33 triggering an immediate shutdown. If no time argument
14228c0d 34 is specified, "<code class="literal">+1</code>" is
663996b3
MS
35 implied.</p><p>Note that to specify a wall message you must
36 specify a time argument, too.</p><p>If the time argument is used, 5 minutes
37 before the system goes down the
38 <code class="filename">/run/nologin</code> file is created to
39 ensure that further logins shall not be
f47781d8 40 allowed.</p></div><div class="refsect1"><a name="idm139839028053664"></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.
60f067b4 41 </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
663996b3
MS
42 machine (the 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
43 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
44 <code class="option">--poweroff</code>, unless
45 <code class="option">--halt</code> is
14228c0d 46 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,
663996b3 47 reboot, just write wall
14228c0d 48 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
663996b3
MS
49 message before
50 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
51 shutdown. This may be used cancel the
52 effect of an invocation of
53 <span class="command"><strong>shutdown</strong></span> with a
54 time argument that is not
14228c0d 55 "<code class="literal">+0</code>" or
f47781d8
MP
56 "<code class="literal">now</code>".</p></dd></dl></div></div><div class="refsect1"><a name="idm139839028111360"></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
57 code otherwise.</p></div><div class="refsect1"><a name="idm139839028110176"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
663996b3
MS
58 <a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
59 <a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a>,
60 <a href="halt.html"><span class="citerefentry"><span class="refentrytitle">halt</span>(8)</span></a>,
5eef597e 61 <a href="http://man7.org/linux/man-pages/man1/wall.1.html"><span class="citerefentry"><span class="refentrytitle">wall</span>(1)</span></a>
663996b3 62 </p></div></div></body></html>