mirror of
https://git.proxmox.com/git/systemd
synced 2026-02-02 20:42:05 +00:00
63 lines
6.5 KiB
HTML
63 lines
6.5 KiB
HTML
<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>
|
|
a.headerlink {
|
|
color: #c60f0f;
|
|
font-size: 0.8em;
|
|
padding: 0 4px 0 4px;
|
|
text-decoration: none;
|
|
visibility: hidden;
|
|
}
|
|
|
|
a.headerlink:hover {
|
|
background-color: #c60f0f;
|
|
color: white;
|
|
}
|
|
|
|
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
|
|
visibility: visible;
|
|
}
|
|
</style><a href="index.html">Index </a>·
|
|
<a href="systemd.directives.html">Directives </a>·
|
|
<a href="../python-systemd/index.html">Python </a>·
|
|
<a href="../libudev/index.html">libudev </a>·
|
|
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 208</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="idm274702164608"></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 or reboot the machine.</p><p>The first argument may be a time string (which
|
|
is usually "<code class="literal">now</code>"). Optionally, this
|
|
may be followed by a wall message to be sent to all
|
|
logged-in users before going down.</p><p>The time string may either be in the format
|
|
"<code class="literal">hh:mm</code>" for hour/minutes specifying
|
|
the time to execute the shutdown at, specified in 24h
|
|
clock format. Alternatively it may be in the syntax
|
|
"<code class="literal">+m</code>" referring to the specified
|
|
number of minutes m from now. "<code class="literal">now</code>"
|
|
is an alias for "<code class="literal">+0</code>", i.e. for
|
|
triggering an immediate shutdown. If no time argument
|
|
is specified, "<code class="literal">+1</code>" is
|
|
implied.</p><p>Note that to specify a wall message you must
|
|
specify a time argument, too.</p><p>If the time argument is used, 5 minutes
|
|
before the system goes down the
|
|
<code class="filename">/run/nologin</code> file is created to
|
|
ensure that further logins shall not be
|
|
allowed.</p></div><div class="refsect1"><a name="idm274702155696"></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>Prints a short help
|
|
text and exits.</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 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
|
|
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>, 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 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
|
|
message before
|
|
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 cancel the
|
|
effect of an invocation of
|
|
<span class="command"><strong>shutdown</strong></span> with a
|
|
time argument that is not
|
|
"<code class="literal">+0</code>" or
|
|
"<code class="literal">now</code>".</p></dd></dl></div></div><div class="refsect1"><a name="idm274706035712"></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 otherwise.</p></div><div class="refsect1"><a name="idm274706034528"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also">¶</a></h2><p>
|
|
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
|
|
<a href="systemctl.html"><span class="citerefentry"><span class="refentrytitle">systemctl</span>(1)</span></a>,
|
|
<a href="halt.html"><span class="citerefentry"><span class="refentrytitle">halt</span>(8)</span></a>,
|
|
<a href="wall.html"><span class="citerefentry"><span class="refentrytitle">wall</span>(1)</span></a>
|
|
</p></div></div></body></html>
|