systemd/man/systemd-sysv-generator.html
2015-02-17 11:22:16 +01:00

50 lines
4.0 KiB
HTML

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd-sysv-generator</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 219</span><hr><div class="refentry"><a name="systemd-sysv-generator"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd-sysv-generator — Unit generator for SysV init scripts</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/usr/lib/systemd/system-generators/systemd-sysv-generator</code></p></div><div class="refsect1"><a name="idm140482621215952"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">systemd-sysv-generator</code> is a generator
that creates wrapper .service units for
<a class="ulink" href="https://savannah.nongnu.org/projects/sysvinit" target="_top">SysV init</a>
scripts in <code class="filename">/etc/init.d/*</code> at boot and when
configuration of the system manager is reloaded. This will allow
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>
to support them similarly to native units.</p><p><a class="ulink" href="http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html" target="_top">LSB headers</a>
in SysV init scripts are interpreted, and the ordering specified
in the header is turned into dependencies between the generated
unit and other units. LSB facilities
"<code class="literal">$remote_fs</code>", "<code class="literal">$network</code>",
"<code class="literal">$named</code>", "<code class="literal">$portmap</code>",
"<code class="literal">$time</code>" are supported and will be turned into
dependencies on specific native systemd targets. See
<a href="systemd.special.html"><span class="citerefentry"><span class="refentrytitle">systemd.special</span>(5)</span></a>
for more details.</p><p>SysV runlevels have corresponding systemd targets
(<code class="filename">runlevel<em class="replaceable"><code>X</code></em>.target</code>).
Wrapper unit that is generated will be wanted by those targets
which correspond to runlevels for which the script is
enabled.</p><p><span class="command"><strong>systemd</strong></span> does not supports SysV scripts as
part of early boot, so all wrapper units are ordered after
<code class="filename">basic.target</code>.</p><p><code class="filename">systemd-sysv-generator</code>
implements the <a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/Generators" target="_top">generator
specification</a>.</p></div><div class="refsect1"><a name="idm140482621304272"></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="systemd.service.html"><span class="citerefentry"><span class="refentrytitle">systemd.service</span>(5)</span></a>,
<a href="systemd.target.html"><span class="citerefentry"><span class="refentrytitle">systemd.target</span>(5)</span></a>
</p></div></div></body></html>