1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 This file is part of systemd.
8 Copyright 2010 Lennart Poettering
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
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
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 <refentry id="systemd.unit">
27 <title>systemd.unit</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
41 <refentrytitle>systemd.unit</refentrytitle>
42 <manvolnum>5</manvolnum>
46 <refname>systemd.unit</refname>
47 <refpurpose>systemd unit configuration files</refpurpose>
51 <para><filename>systemd.service</filename></para>
52 <para><filename>systemd.socket</filename></para>
53 <para><filename>systemd.device</filename></para>
54 <para><filename>systemd.mount</filename></para>
55 <para><filename>systemd.automount</filename></para>
56 <para><filename>systemd.swap</filename></para>
57 <para><filename>systemd.target</filename></para>
61 <title>Description</title>
63 <para>A unit configuration file encodes information
64 about a service, a socket, a mount point, an automount
65 point, a swap file or patition, or a start-up target
66 controlled and supervised by systemd. The syntax is
67 inspired by XDG <filename>.desktop</filename> files,
68 which are in turn inspired by Windows
69 <filename>.ini</filename> files.</para>
71 <para>This man pages lists the common configuration
72 options of the various unit types.</para>
76 <title>Options</title>
80 <term><varname>Names=</varname></term>
82 <para>Additional names for this unit. The names
83 listed here mus have the same suffix (i.e. type)
84 as the identifier name. This option may be
85 specified more than once.</para>
89 <term><varname>Requires=</varname></term>
91 <para>Dependencies on other
92 units. If this units get
93 activated the units listed
94 here will be activated as
95 well. If one of the other
96 units gets deactivated or its
97 activation fails, this unit
98 will be deactivated. This
99 option may be specified more
107 <title>See Also</title>
109 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
110 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
111 <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>
112 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
113 <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>
114 <citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>
115 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>
116 <citerefentry><refentrytitle>systemd.automount</refentrytitle><manvolnum>5</manvolnum></citerefentry>
117 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>
118 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>