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.special">
27 <title>systemd.special</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.special</refentrytitle>
42 <manvolnum>7</manvolnum>
46 <refname>systemd.special</refname>
47 <refpurpose>special systemd units</refpurpose>
51 <para><filename>emergency.service</filename></para>
52 <para><filename>local-fs.target</filename></para>
53 <para><filename>network.target</filename></para>
54 <para><filename>nss-lookup.target</filename></para>
55 <para><filename>remote-fs.target</filename></para>
56 <para><filename>rpcbind.target</filename></para>
57 <para><filename>rtc-set.target</filename></para>
58 <para><filename>shutdown.target</filename></para>
59 <para><filename>sigpwr.target</filename></para>
60 <para><filename>sockets.target</filename></para>
61 <para><filename>swap.target</filename></para>
62 <para><filename>syslog.target</filename></para>
63 <para><filename>systemd-initctl.service</filename></para>
64 <para><filename>systemd-initctl.socket</filename></para>
65 <para><filename>systemd-logger.service</filename></para>
66 <para><filename>systemd-logger.socket</filename></para>
70 <title>Description</title>
72 <para>A few units are treated specially by
73 systemd. They have special internal semantics and
74 cannot be renamed.</para>
78 <title>Special System Units</title>
82 <term><filename>emergency.service</filename></term>
84 <para>A special service unit
85 that starts an emergency
87 console. This unit is supposed
88 to be used with the kernel
90 <varname>systemd.default=</varname>
91 and has otherwise little use.
96 <term><filename>local-fs.target</filename></term>
98 <para>systemd automatically
99 adds dependencies of type
100 After to all mount units that
102 points. In addition, systemd
103 adds dependencies of type
104 Wants to those mounts listed
106 <filename>/etc/fstab</filename>
108 <literal>auto</literal> and
109 <literal>comment=systemd.mount</literal>
110 mount options set.</para>
112 <para>systemd automatically
113 adds dependencies of type
114 After to this target unit for
115 all SysV init scripts with an
116 LSB header referring to the
117 <literal>$local_fs</literal>
122 <term><filename>network.target</filename></term>
124 <para>systemd automatically
125 adds dependencies of type
126 After to this target unit for
127 all SysV init scripts with an
128 LSB header referring to the
129 <literal>$network</literal>
134 <term><filename>nss-lookup.target</filename></term>
136 <para>systemd automatically
137 adds dependencies of type
138 After to this target unit for
139 all SysV init scripts with an
140 LSB header referring to the
141 <literal>$named</literal>
146 <term><filename>remote-fs.target</filename></term>
148 <para>Similar to <filename>local-fs.target</filename>, but for remote mount points.</para>
149 <para>systemd automatically
150 adds dependencies of type
151 After to this target unit for
152 all SysV init scripts with an
153 LSB header referring to the
154 <literal>$remote-fs</literal>
159 <term><filename>rpcbind.target</filename></term>
161 <para>systemd automatically
162 adds dependencies of type
163 After to this target unit for
164 all SysV init scripts with an
165 LSB header referring to the
166 <literal>$rpcbind</literal>
171 <term><filename>rtc-set.target</filename></term>
173 <para>systemd automatically
174 adds dependencies of type
175 After to this target unit for
176 all SysV init scripts with an
177 LSB header referring to the
178 <literal>$time</literal>
183 <term><filename>shutdown.target</filename></term>
185 <para>A special target unit
186 that terminates the services
187 on system shutdown.</para>
189 <para>Services that shall be
190 terminated on system shutdown
191 shall add Wants dependencies
192 from this unit to their
196 <para>systemd automatically
197 adds dependencies of type
198 Conflicts to this target unit
199 for all SysV init scripts that
200 shall be terminated in SysV
201 runlevels 0 or 6.</para>
205 <term><filename>sigpwr.target</filename></term>
207 <para>A special target that is
208 started when systemd receives
209 the SIGPWR process signal,
210 which is normally sent by the
211 kernel or UPS daemons when the
216 <term><filename>sockets.target</filename></term>
218 <para>A special target unit
219 that sets up all service
222 <para>Services that can be
223 socket-activated shall add
224 Wants dependencies from this
225 unit to their socket unit
226 during installation.</para>
230 <term><filename>swap.target</filename></term>
233 <filename>local-fs.target</filename>, but for swap
239 <term><filename>syslog.target</filename></term>
241 <para>systemd automatically
242 adds dependencies of type
243 After to this target unit for
244 all SysV init scripts with an
245 LSB header referring to the
246 <literal>$syslog</literal>
249 <para>Administrators should
250 ensure that this target pulls
251 in a service unit with the
253 <filename>@SPECIAL_SYSLOG_NAME@</filename> (or a
254 socket unit that activates
255 this service).</para>
259 <term><filename>systemd-initctl.service</filename></term>
262 compatibility with the SysV
263 /dev/initctl file system FIFO
264 for communication with the
267 socket-activated service, see
268 <filename>system-initctl.socket</filename>.</para>
272 <term><filename>systemd-initctl.socket</filename></term>
274 <para>Socket activation unit
276 <filename>system-initctl.service</filename>.</para>
280 <term><filename>systemd-logger.service</filename></term>
282 <para>This is used internally
283 by systemd to provide syslog
287 socket-activated service, see
288 <filename>system-logger.socket</filename>.</para>
292 <term><filename>systemd-logger.socket</filename></term>
294 <para>Socket activation unit
296 <filename>system-logger.service</filename>.</para>
303 <title>Special Session Units</title>
305 <para>When systemd runs as a service instance, the
306 following special units are available, which have
307 similar definitions as their system counterparts:
308 <filename>local-fs.target</filename>,
309 <filename>remote-fs.target</filename>,
310 <filename>shutdown.target</filename>,
311 <filename>sockets.target</filename>,
312 <filename>swap.target</filename>.</para>
316 <title>See Also</title>
318 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
319 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
320 <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>
321 <citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>