~ubuntu-branches/debian/jessie/systemd/jessie

« back to all changes in this revision

Viewing changes to man/systemd.special.html.in

  • Committer: Package Import Robot
  • Author(s): Tollef Fog Heen, Tollef Fog Heen, Michael Biebl
  • Date: 2012-04-03 19:59:17 UTC
  • mfrom: (1.1.10) (6.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120403195917-l532urrbg4pkreas
Tags: 44-1
[ Tollef Fog Heen ]
* New upstream version.
  - Backport 3492207: journal: PAGE_SIZE is not known on ppc and other
    archs
  - Backport 5a2a2a1: journal: react with immediate rotation to a couple
    of more errors
  - Backport 693ce21: util: never follow symlinks in rm_rf_children()
    Fixes CVE-2012-1174, closes: #664364
* Drop output message from init-functions hook, it's pointless.
* Only rmdir /lib/init/rw if it exists.
* Explicitly order debian-fixup before sysinit.target to prevent a
  possible race condition with the creation of sockets.  Thanks to
  Michael Biebl for debugging this.
* Always restart the initctl socket on upgrades, to mask sysvinit
  removing it.

[ Michael Biebl ]
* Remove workaround for non-interactive sessions from pam config again.
* Create compat /dev/initctl symlink in case we are upgrading from a system
  running a newer version of sysvinit (using /run/initctl) and sysvinit is
  replaced with systemd-sysv during the upgrade. Closes: #663219
* Install new man pages.
* Build-Depend on valac (>= 0.12) instead of valac-0.12. Closes: #663323

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>systemd.special</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"/></head><body><div class="refentry" title="systemd.special"><a id="systemd.special"/><div class="titlepage"/><div class="refnamediv"><h2>Name</h2><p>systemd.special — special systemd units</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><p><code class="filename">basic.target</code>,
4
 
                <code class="filename">ctrl-alt-del.target</code>,
5
 
                <code class="filename">dbus.service</code>,
6
 
                <code class="filename">default.target</code>,
7
 
                <code class="filename">display-manager.service</code>,
8
 
                <code class="filename">emergency.target</code>,
9
 
                <code class="filename">exit.service</code>,
10
 
                <code class="filename">graphical.target</code>,
11
 
                <code class="filename">halt.target</code>,
12
 
                <code class="filename">kbrequest.target</code>,
13
 
                <code class="filename">local-fs.target</code>,
14
 
                <code class="filename">local-fs-pre.target</code>,
15
 
                <code class="filename">mail-transfer-agent.target</code>,
16
 
                <code class="filename">multi-user.target</code>,
17
 
                <code class="filename">network.target</code>,
18
 
                <code class="filename">nss-lookup.target</code>,
19
 
                <code class="filename">poweroff.target</code>,
20
 
                <code class="filename">reboot.target</code>,
21
 
                <code class="filename">remote-fs.target</code>,
22
 
                <code class="filename">remote-fs-pre.target</code>,
23
 
                <code class="filename">rescue.target</code>,
24
 
                <code class="filename">rpcbind.target</code>,
25
 
                <code class="filename">runlevel2.target</code>,
26
 
                <code class="filename">runlevel3.target</code>,
27
 
                <code class="filename">runlevel4.target</code>,
28
 
                <code class="filename">runlevel5.target</code>,
29
 
                <code class="filename">shutdown.target</code>,
30
 
                <code class="filename">sigpwr.target</code>,
31
 
                <code class="filename">sockets.target</code>,
32
 
                <code class="filename">swap.target</code>,
33
 
                <code class="filename">sysinit.target</code>,
34
 
                <code class="filename">syslog.target</code>,
35
 
                <code class="filename">systemd-initctl.service</code>,
36
 
                <code class="filename">systemd-initctl.socket</code>,
37
 
                <code class="filename">systemd-stdout-syslog-bridge.service</code>,
38
 
                <code class="filename">systemd-stdout-syslog-bridge.socket</code>,
39
 
                <code class="filename">time-sync.target</code>,
40
 
                <code class="filename">umount.target</code></p></div><div class="refsect1" title="Description"><a id="id309514"/><h2>Description</h2><p>A few units are treated specially by
41
 
                systemd. They have special internal semantics and
42
 
                cannot be renamed.</p></div><div class="refsect1" title="Special System Units"><a id="id309526"/><h2>Special System Units</h2><div class="variablelist"><dl><dt><span class="term"><code class="filename">basic.target</code></span></dt><dd><p>A special target unit
43
 
                                        covering early boot-up.</p><p>systemd automatically
44
 
                                        adds dependencies of the types
45
 
                                        Requires and After for this
46
 
                                        target unit to all SysV
47
 
                                        service units configured for
48
 
                                        runlevel 1 to 5.</p><p>Usually this should pull-in
49
 
                                        all sockets, mount points,
50
 
                                        swap devices and other basic
51
 
                                        initialization necessary for
52
 
                                        the general purpose
53
 
                                        daemons. Most normal daemons
54
 
                                        should have dependencies of
55
 
                                        type After and Requires on
56
 
                                        this unit.</p></dd><dt><span class="term"><code class="filename">ctrl-alt-del.target</code></span></dt><dd><p>systemd starts this
57
 
                                        target whenever
58
 
                                        Control+Alt+Del is pressed on
59
 
                                        the console. Usually this
60
 
                                        should be aliased (symlinked)
61
 
                                        to
62
 
                                        <code class="filename">reboot.target</code>.</p></dd><dt><span class="term"><code class="filename">dbus.service</code></span></dt><dd><p>A special unit for the
63
 
                                        D-Bus system bus. As soon as
64
 
                                        this service is fully started
65
 
                                        up systemd will connect to it
66
 
                                        and register its
67
 
                                        service.</p></dd><dt><span class="term"><code class="filename">default.target</code></span></dt><dd><p>The default unit systemd
68
 
                                        starts at bootup. Usually this
69
 
                                        should be aliased (symlinked)
70
 
                                        to
71
 
                                        <code class="filename">multi-user.target</code>
72
 
                                        or
73
 
                                        <code class="filename">graphical.target</code>.</p><p>The default unit systemd
74
 
                                        starts at bootup can be
75
 
                                        overridden with the
76
 
                                        <code class="varname">systemd.unit=</code>
77
 
                                        kernel command line option.</p></dd><dt><span class="term"><code class="filename">display-manager.service</code></span></dt><dd><p>The display manager
78
 
                                        service. Usually this should
79
 
                                        be aliased (symlinked) to
80
 
                                        <code class="filename">xdm.service</code>
81
 
                                        or a similar display manager
82
 
                                        service.</p><p>systemd automatically
83
 
                                        adds dependencies of type
84
 
                                        After for this target unit to
85
 
                                        all SysV init script service
86
 
                                        units with a LSB header
87
 
                                        referring to the
88
 
                                        <code class="literal">$x-display-manager</code>
89
 
                                        facility, for compatibility
90
 
                                        with Debian.</p></dd><dt><span class="term"><code class="filename">emergency.target</code></span></dt><dd><p>A special target unit
91
 
                                        that starts an emergency
92
 
                                        shell on the main
93
 
                                        console. This unit is supposed
94
 
                                        to be used with the kernel
95
 
                                        command line option
96
 
                                        <code class="varname">systemd.unit=</code>
97
 
                                        and has otherwise little use.
98
 
                                        </p></dd><dt><span class="term"><code class="filename">graphical.target</code></span></dt><dd><p>A special target unit
99
 
                                        for setting up a graphical
100
 
                                        login screen. This pulls in
101
 
                                        <code class="filename">multi-user.target</code>.</p><p>Units that are needed
102
 
                                        for graphical login shall add
103
 
                                        Wants dependencies for their
104
 
                                        unit to this unit (or
105
 
                                        <code class="filename">multi-user.target</code>)
106
 
                                        during installation.</p></dd><dt><span class="term"><code class="filename">halt.target</code></span></dt><dd><p>A special target unit
107
 
                                        for shutting down and halting the system.</p><p>Applications wanting to
108
 
                                        halt the system should start
109
 
                                        this unit.</p></dd><dt><span class="term"><code class="filename">kbrequest.target</code></span></dt><dd><p>systemd starts this
110
 
                                        target whenever Alt+ArrowUp is
111
 
                                        pressed on the console. This
112
 
                                        is a good candidate to be
113
 
                                        aliased (symlinked) to
114
 
                                        <code class="filename">rescue.target</code>.</p></dd><dt><span class="term"><code class="filename">local-fs.target</code></span></dt><dd><p>systemd automatically
115
 
                                        adds dependencies of type
116
 
                                        After to all mount units that
117
 
                                        refer to local mount points
118
 
                                        for this target unit. In
119
 
                                        addition, systemd adds
120
 
                                        dependencies of type Wants to
121
 
                                        this target unit for those
122
 
                                        mounts listed in
123
 
                                        <code class="filename">/etc/fstab</code>
124
 
                                        that have the
125
 
                                        <code class="option">auto</code> and
126
 
                                        <code class="option">comment=systemd.mount</code>
127
 
                                        mount options set.</p><p>systemd automatically
128
 
                                        adds dependencies of type
129
 
                                        After for this target unit to
130
 
                                        all SysV init script service
131
 
                                        units with an LSB header
132
 
                                        referring to the
133
 
                                        <code class="literal">$local_fs</code>
134
 
                                        facility.</p></dd><dt><span class="term"><code class="filename">local-fs-pre.target</code></span></dt><dd><p>This target unit is
135
 
                                        automatically ordered before
136
 
                                        all local mount points marked
137
 
                                        with <code class="option">auto</code>
138
 
                                        (see above). It can be used to
139
 
                                        execute certain units before
140
 
                                        all local mounts.</p></dd><dt><span class="term"><code class="filename">mail-transfer-agent.target</code></span></dt><dd><p>The mail transfer agent
141
 
                                        (MTA) service. Usually this
142
 
                                        should pull-in all units
143
 
                                        necessary for
144
 
                                        sending/receiving mails on the
145
 
                                        local host.</p><p>systemd automatically
146
 
                                        adds dependencies of type
147
 
                                        After for this target unit to
148
 
                                        all SysV init script service
149
 
                                        units with an LSB header
150
 
                                        referring to the
151
 
                                        <code class="literal">$mail-transfer-agent</code>
152
 
                                        or
153
 
                                        <code class="literal">$mail-transport-agent</code>
154
 
                                        facilities, for compatibility
155
 
                                        with Debian.</p></dd><dt><span class="term"><code class="filename">multi-user.target</code></span></dt><dd><p>A special target unit
156
 
                                        for setting up a multi-user
157
 
                                        system (non-graphical). This
158
 
                                        is pulled in by
159
 
                                        <code class="filename">graphical.target</code>.</p><p>Units that are needed
160
 
                                        for a multi-user system shall
161
 
                                        add Wants dependencies to
162
 
                                        this unit for their unit during
163
 
                                        installation.</p></dd><dt><span class="term"><code class="filename">network.target</code></span></dt><dd><p>systemd automatically
164
 
                                        adds dependencies of type
165
 
                                        After for this target unit to
166
 
                                        all SysV init script service
167
 
                                        units with an LSB header
168
 
                                        referring to the
169
 
                                        <code class="literal">$network</code>
170
 
                                        facility.</p></dd><dt><span class="term"><code class="filename">nss-lookup.target</code></span></dt><dd><p>systemd automatically
171
 
                                        adds dependencies of type
172
 
                                        After for this target unit to
173
 
                                        all SysV init script service
174
 
                                        units with an LSB header
175
 
                                        referring to the
176
 
                                        <code class="literal">$named</code>
177
 
                                        facility.</p></dd><dt><span class="term"><code class="filename">poweroff.target</code></span></dt><dd><p>A special target unit
178
 
                                        for shutting down and powering off the system.</p><p>Applications wanting to
179
 
                                        power off the system should start
180
 
                                        this unit.</p><p><code class="filename">runlevel0.target</code>
181
 
                                        is an alias for this target
182
 
                                        unit, for compatibility with SysV.</p></dd><dt><span class="term"><code class="filename">reboot.target</code></span></dt><dd><p>A special target unit
183
 
                                        for shutting down and rebooting the system.</p><p>Applications wanting to
184
 
                                        reboot the system should start
185
 
                                        this unit.</p><p><code class="filename">runlevel6.target</code>
186
 
                                        is an alias for this target
187
 
                                        unit, for compatibility with SysV.</p></dd><dt><span class="term"><code class="filename">remote-fs.target</code></span></dt><dd><p>Similar to
188
 
                                        <code class="filename">local-fs.target</code>,
189
 
                                        but for remote mount
190
 
                                        points.</p><p>systemd automatically
191
 
                                        adds dependencies of type
192
 
                                        After for this target unit to
193
 
                                        all SysV init script service
194
 
                                        units with an LSB header
195
 
                                        referring to the
196
 
                                        <code class="literal">$remote_fs</code>
197
 
                                        facility.</p></dd><dt><span class="term"><code class="filename">remote-fs-pre.target</code></span></dt><dd><p>This target unit is
198
 
                                        automatically ordered before
199
 
                                        all remote mount points marked
200
 
                                        with <code class="option">auto</code>
201
 
                                        (see above). It can be used to
202
 
                                        execute certain units before
203
 
                                        all remote mounts.</p></dd><dt><span class="term"><code class="filename">rescue.target</code></span></dt><dd><p>A special target unit
204
 
                                        for setting up the base system
205
 
                                        and a rescue shell.</p><p><code class="filename">runlevel1.target</code>
206
 
                                        is an alias for this target
207
 
                                        unit, for compatibility with SysV.</p></dd><dt><span class="term"><code class="filename">rpcbind.target</code></span></dt><dd><p>systemd automatically
208
 
                                        adds dependencies of type
209
 
                                        After for this target unit to
210
 
                                        all SysV init script service
211
 
                                        units with an LSB header
212
 
                                        referring to the
213
 
                                        <code class="literal">$rpcbind</code>
214
 
                                        facility.</p></dd><dt><span class="term"><code class="filename">runlevel2.target</code></span></dt><dd><p>This is a target that is
215
 
                                        called whenever the SysV
216
 
                                        compatibility code asks for
217
 
                                        runlevel 2. It is a good idea
218
 
                                        to make this an alias for
219
 
                                        (i.e. symlink to)
220
 
                                        <code class="filename">multi-user.target</code>.</p></dd><dt><span class="term"><code class="filename">runlevel3.target</code></span></dt><dd><p>This is a target that is
221
 
                                        called whenever the SysV
222
 
                                        compatibility code asks for
223
 
                                        runlevel 3. It is a good idea
224
 
                                        to make this an alias for
225
 
                                        (i.e. symlink to)
226
 
                                        <code class="filename">multi-user.target</code>
227
 
                                        or
228
 
                                        <code class="filename">graphical.target</code>.</p></dd><dt><span class="term"><code class="filename">runlevel4.target</code></span></dt><dd><p>This is a target that is
229
 
                                        called whenever the SysV
230
 
                                        compatibility code asks for
231
 
                                        runlevel 4. It is a good idea
232
 
                                        to make this an alias for
233
 
                                        (i.e. symlink to)
234
 
                                        <code class="filename">multi-user.target</code>
235
 
                                        or
236
 
                                        <code class="filename">graphical.target</code>.</p></dd><dt><span class="term"><code class="filename">runlevel5.target</code></span></dt><dd><p>This is a target that is
237
 
                                        called whenever the SysV
238
 
                                        compatibility code asks for
239
 
                                        runlevel 5. It is a good idea
240
 
                                        to make this an alias for
241
 
                                        (i.e. symlink to)
242
 
                                        <code class="filename">multi-user.target</code>
243
 
                                        or
244
 
                                        <code class="filename">graphical.target</code>.</p></dd><dt><span class="term"><code class="filename">shutdown.target</code></span></dt><dd><p>A special target unit
245
 
                                        that terminates the services
246
 
                                        on system shutdown.</p><p>Services that shall be
247
 
                                        terminated on system shutdown
248
 
                                        shall add Conflicts
249
 
                                        dependencies to this unit for
250
 
                                        their service unit, which is
251
 
                                        implicitly done when
252
 
                                        <code class="varname">DefaultDependencies=yes</code>
253
 
                                        is set (the default).</p><p>systemd automatically
254
 
                                        adds dependencies of type
255
 
                                        Conflicts to this target unit
256
 
                                        for all SysV init script
257
 
                                        service units that shall be
258
 
                                        terminated in SysV runlevels 0
259
 
                                        or 6.</p></dd><dt><span class="term"><code class="filename">sigpwr.target</code></span></dt><dd><p>A special target that is
260
 
                                        started when systemd receives
261
 
                                        the SIGPWR process signal,
262
 
                                        which is normally sent by the
263
 
                                        kernel or UPS daemons when
264
 
                                        power fails.</p></dd><dt><span class="term"><code class="filename">sockets.target</code></span></dt><dd><p>A special target unit
265
 
                                        that sets up all service
266
 
                                        sockets.</p><p>Services that can be
267
 
                                        socket-activated shall add
268
 
                                        Wants dependencies to this
269
 
                                        unit for their socket unit
270
 
                                        during installation.</p></dd><dt><span class="term"><code class="filename">swap.target</code></span></dt><dd><p>Similar to
271
 
                                        <code class="filename">local-fs.target</code>, but for swap
272
 
                                        partitions and swap
273
 
                                        files.</p></dd><dt><span class="term"><code class="filename">sysinit.target</code></span></dt><dd><p>A special target unit
274
 
                                        covering early boot-up scripts.</p><p>systemd automatically
275
 
                                        adds dependencies of the types
276
 
                                        Wants and After for all
277
 
                                        SysV service units configured
278
 
                                        for runlevels that are not 0
279
 
                                        to 6 to this target unit.
280
 
                                        This covers the special
281
 
                                        boot-up runlevels some
282
 
                                        distributions have, such as S
283
 
                                        or b.</p></dd><dt><span class="term"><code class="filename">syslog.target</code></span></dt><dd><p>systemd automatically
284
 
                                        adds dependencies of type
285
 
                                        After for this target unit to
286
 
                                        all SysV init script service
287
 
                                        units with an LSB header
288
 
                                        referring to the
289
 
                                        <code class="literal">$syslog</code>
290
 
                                        facility.</p></dd><dt><span class="term"><code class="filename">systemd-initctl.service</code></span></dt><dd><p>This provides
291
 
                                        compatibility with the SysV
292
 
                                        /dev/initctl file system FIFO
293
 
                                        for communication with the
294
 
                                        init system.</p><p>This is a
295
 
                                        socket-activated service, see
296
 
                                        <code class="filename">system-initctl.socket</code>.</p></dd><dt><span class="term"><code class="filename">systemd-initctl.socket</code></span></dt><dd><p>Socket activation unit
297
 
                                        for
298
 
                                        <code class="filename">system-initctl.service</code>.</p></dd><dt><span class="term"><code class="filename">systemd-stdout-syslog-bridge.service</code></span></dt><dd><p>This is internally used
299
 
                                        by systemd to provide syslog
300
 
                                        logging to the processes it
301
 
                                        maintains.</p><p>This is a
302
 
                                        socket-activated service, see
303
 
                                        <code class="filename">system-stdout-syslog-bridge.socket</code>.</p></dd><dt><span class="term"><code class="filename">systemd-stdout-syslog-bridge.socket</code></span></dt><dd><p>Socket activation unit
304
 
                                        for
305
 
                                        <code class="filename">system-stdout-syslog-bridge.service</code>. systemd
306
 
                                        will automatically add
307
 
                                        dependencies of types Requires
308
 
                                        and After to all units that
309
 
                                        have been configured for
310
 
                                        stdout or stderr to be
311
 
                                        connected to syslog or the
312
 
                                        kernel log buffer.</p></dd><dt><span class="term"><code class="filename">systemd-shutdownd.service</code></span></dt><dd><p>This is internally used
313
 
                                        by
314
 
                                        <span class="citerefentry"><span class="refentrytitle">shutdown</span>(8)</span>
315
 
                                        to implement delayed shutdowns.</p><p>This is a
316
 
                                        socket-activated service, see
317
 
                                        <code class="filename">system-shutdownd.socket</code>.</p></dd><dt><span class="term"><code class="filename">systemd-shutdownd.socket</code></span></dt><dd><p>Socket activation unit
318
 
                                        for
319
 
                                        <code class="filename">system-shutdownd.service</code>.</p></dd><dt><span class="term"><code class="filename">time-sync.target</code></span></dt><dd><p>systemd automatically
320
 
                                        adds dependencies of type
321
 
                                        After for this target unit to
322
 
                                        all SysV init script service
323
 
                                        units with an LSB header
324
 
                                        referring to the
325
 
                                        <code class="literal">$time</code>
326
 
                                        facility.</p></dd><dt><span class="term"><code class="filename">umount.target</code></span></dt><dd><p>A special target unit
327
 
                                        that umounts all mount and
328
 
                                        automount points on system
329
 
                                        shutdown.</p><p>Mounts that shall be
330
 
                                        unmounted on system shutdown
331
 
                                        shall add Conflicts
332
 
                                        dependencies to this unit for
333
 
                                        their mount unit, which is
334
 
                                        implicitly done when
335
 
                                        <code class="varname">DefaultDependencies=yes</code>
336
 
                                        is set (the default).</p></dd></dl></div></div><div class="refsect1" title="Special User Units"><a id="id319313"/><h2>Special User Units</h2><p>When systemd runs as a user instance, the
337
 
                following special units are available, which have
338
 
                similar definitions as their system counterparts:
339
 
                <code class="filename">default.target</code>,
340
 
                <code class="filename">local-fs.target</code>,
341
 
                <code class="filename">remote-fs.target</code>,
342
 
                <code class="filename">shutdown.target</code>,
343
 
                <code class="filename">sockets.target</code>,
344
 
                <code class="filename">swap.target</code>.</p><p>In addition the following special unit is
345
 
                understood only when systemd runs as service instance:</p><div class="variablelist"><dl><dt><span class="term"><code class="filename">exit.service</code></span></dt><dd><p>A special service unit
346
 
                                        for shutting down the
347
 
                                        user service manager.</p><p>Applications wanting to
348
 
                                        terminate the user service
349
 
                                        manager should start this
350
 
                                        unit. If systemd receives
351
 
                                        SIGTERM or SIGINT when running
352
 
                                        as user service daemon it will
353
 
                                        start this unit.</p><p>Normally, this pulls in
354
 
                                        <code class="filename">shutdown.target</code>
355
 
                                        which in turn should be
356
 
                                        conflicted by all units that
357
 
                                        want to be shut down on
358
 
                                        user service manager exit.</p></dd></dl></div></div><div class="refsect1" title="See Also"><a id="id319398"/><h2>See Also</h2><p>
359
 
                          <span class="citerefentry"><span class="refentrytitle">systemd.unit</span>(5)</span>,
360
 
                          <span class="citerefentry"><span class="refentrytitle">systemd.service</span>(5)</span>,
361
 
                          <span class="citerefentry"><span class="refentrytitle">systemd.socket</span>(5)</span>,
362
 
                          <span class="citerefentry"><span class="refentrytitle">systemd.target</span>(5)</span>
363
 
                  </p></div></div></body></html>