]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.target.xml
test-execute: Add tests for new PassEnvironment= directive
[thirdparty/systemd.git] / man / systemd.target.xml
CommitLineData
da49e9ab 1<?xml version='1.0'?> <!--*-nxml-*-->
da49e9ab 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
da49e9ab
LP
4
5<!--
6 This file is part of systemd.
7
8 Copyright 2010 Lennart Poettering
9
10 systemd is free software; you can redistribute it and/or modify it
5430f7f2
LP
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
da49e9ab
LP
13 (at your option) any later version.
14
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5430f7f2 18 Lesser General Public License for more details.
da49e9ab 19
5430f7f2 20 You should have received a copy of the GNU Lesser General Public License
da49e9ab
LP
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22-->
23
24<refentry id="systemd.target">
798d3a52
ZJS
25 <refentryinfo>
26 <title>systemd.target</title>
27 <productname>systemd</productname>
28
29 <authorgroup>
30 <author>
31 <contrib>Developer</contrib>
32 <firstname>Lennart</firstname>
33 <surname>Poettering</surname>
34 <email>lennart@poettering.net</email>
35 </author>
36 </authorgroup>
37 </refentryinfo>
38
39 <refmeta>
40 <refentrytitle>systemd.target</refentrytitle>
41 <manvolnum>5</manvolnum>
42 </refmeta>
43
44 <refnamediv>
45 <refname>systemd.target</refname>
46 <refpurpose>Target unit configuration</refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
50 <para><filename><replaceable>target</replaceable>.target</filename></para>
51 </refsynopsisdiv>
52
53 <refsect1>
54 <title>Description</title>
55
56 <para>A unit configuration file whose name ends in
57 <literal>.target</literal> encodes information about a target unit
58 of systemd, which is used for grouping units and as well-known
59 synchronization points during start-up.</para>
60
61 <para>This unit type has no specific options. See
62 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
63 for the common options of all unit configuration files. The common
64 configuration items are configured in the generic [Unit] and
65 [Install] sections. A separate [Target] section does not exist,
66 since no target-specific options may be configured.</para>
67
68 <para>Target units do not offer any additional functionality on
69 top of the generic functionality provided by units. They exist
70 merely to group units via dependencies (useful as boot targets),
71 and to establish standardized names for synchronization points
72 used in dependencies between units. Among other things, target
73 units are a more flexible replacement for SysV runlevels in the
74 classic SysV init system. (And for compatibility reasons special
75 target units such as <filename>runlevel3.target</filename> exist
76 which are used by the SysV runlevel compatibility code in systemd.
77 See
78 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>
79 for details).</para>
80
81 <para>Unless <varname>DefaultDependencies=</varname> is set to
82 <option>false</option>, target units will implicitly complement
83 all configured dependencies of type <varname>Wants=</varname>,
84 <varname>Requires=</varname>,
85 <varname>RequiresOverridable=</varname> with dependencies of type
86 <varname>After=</varname> if the units in question also have
87 <varname>DefaultDependencies=true</varname>.
88 </para>
89 </refsect1>
90
91 <refsect1>
92 <title>See Also</title>
93 <para>
94 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
95 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
96 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
97 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
98 <citerefentry><refentrytitle>systemd.directives</refentrytitle><manvolnum>7</manvolnum></citerefentry>
99 </para>
100 </refsect1>
da49e9ab
LP
101
102</refentry>