4.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title></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 215</span><hr><div class="refentry"><a name=""></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p> — Target unit configuration</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename"><em class="replaceable"><code>target</code></em>.target</code></p></div><div class="refsect1"><a name="idm214170922224"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p>A unit configuration file whose name ends in
                "<code class="literal">.target</code>" encodes information about
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
                a target unit of systemd, which is used for grouping
                units and as well-known synchronization points during
                start-up.</p><p>This unit type has no specific options. See
                <a href="systemd.unit.html"><span class="citerefentry"><span class="refentrytitle">systemd.unit</span>(5)</span></a>
                for the common options of all unit configuration
                files. The common configuration items are configured
                in the generic [Unit] and [Install] sections. A
                separate [Target] section does not exist, since no
                target-specific options may be configured.</p><p>Target units do not offer any additional
                functionality on top of the generic functionality
                provided by units. They exist merely to group units via dependencies
                (useful as boot targets), and to establish
                standardized names for synchronization points used in
                dependencies between units. Among other things, target
                units are a more flexible replacement for SysV
                runlevels in the classic SysV init system. (And for
                compatibility reasons special
                target units such as
                <code class="filename"></code> exist which are used by
                the SysV runlevel compatibility code in systemd. See
                <a href="systemd.special.html"><span class="citerefentry"><span class="refentrytitle">systemd.special</span>(7)</span></a>
                for details).</p><p>Unless <code class="varname">DefaultDependencies=</code>
                is set to <code class="option">false</code>, target units will
                implicitly complement all configured dependencies of
                type <code class="varname">Wants=</code>,
                <code class="varname">Requires=</code>,
                <code class="varname">RequiresOverridable=</code> with
                dependencies of type <code class="varname">After=</code> if the
                units in question also have
                <code class="varname">DefaultDependencies=true</code>.
                </p></div><div class="refsect1"><a name="idm214167077728"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
55 56 57 58 59 60
                          <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>(8)</span></a>,
                          <a href="systemd.unit.html"><span class="citerefentry"><span class="refentrytitle">systemd.unit</span>(5)</span></a>,
                          <a href="systemd.special.html"><span class="citerefentry"><span class="refentrytitle">systemd.special</span>(7)</span></a>,
                          <a href="systemd.directives.html"><span class="citerefentry"><span class="refentrytitle">systemd.directives</span>(7)</span></a>