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

« back to all changes in this revision

Viewing changes to man/systemd.special.7

  • 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
'\" t
 
2
.\"     Title: systemd.special
 
3
.\"    Author: Lennart Poettering <lennart@poettering.net>
 
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
 
5
.\"      Date: 03/16/2012
 
6
.\"    Manual: systemd.special
 
7
.\"    Source: systemd
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "SYSTEMD\&.SPECIAL" "7" "03/16/2012" "systemd" "systemd.special"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * Define some portability stuff
 
13
.\" -----------------------------------------------------------------
 
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
15
.\" http://bugs.debian.org/507673
 
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
 
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
18
.ie \n(.g .ds Aq \(aq
 
19
.el       .ds Aq '
 
20
.\" -----------------------------------------------------------------
 
21
.\" * set default formatting
 
22
.\" -----------------------------------------------------------------
 
23
.\" disable hyphenation
 
24
.nh
 
25
.\" disable justification (adjust text to left margin only)
 
26
.ad l
 
27
.\" -----------------------------------------------------------------
 
28
.\" * MAIN CONTENT STARTS HERE *
 
29
.\" -----------------------------------------------------------------
 
30
.SH "NAME"
 
31
systemd.special \- special systemd units
 
32
.SH "SYNOPSIS"
 
33
.PP
 
34
basic\&.target,
 
35
ctrl\-alt\-del\&.target,
 
36
dbus\&.service,
 
37
default\&.target,
 
38
display\-manager\&.service,
 
39
emergency\&.target,
 
40
exit\&.service,
 
41
graphical\&.target,
 
42
halt\&.target,
 
43
kbrequest\&.target,
 
44
local\-fs\&.target,
 
45
local\-fs\-pre\&.target,
 
46
mail\-transfer\-agent\&.target,
 
47
multi\-user\&.target,
 
48
network\&.target,
 
49
nss\-lookup\&.target,
 
50
poweroff\&.target,
 
51
reboot\&.target,
 
52
remote\-fs\&.target,
 
53
remote\-fs\-pre\&.target,
 
54
rescue\&.target,
 
55
rpcbind\&.target,
 
56
runlevel2\&.target,
 
57
runlevel3\&.target,
 
58
runlevel4\&.target,
 
59
runlevel5\&.target,
 
60
shutdown\&.target,
 
61
sigpwr\&.target,
 
62
sockets\&.target,
 
63
swap\&.target,
 
64
sysinit\&.target,
 
65
syslog\&.target,
 
66
systemd\-initctl\&.service,
 
67
systemd\-initctl\&.socket,
 
68
systemd\-stdout\-syslog\-bridge\&.service,
 
69
systemd\-stdout\-syslog\-bridge\&.socket,
 
70
time\-sync\&.target,
 
71
umount\&.target
 
72
.SH "DESCRIPTION"
 
73
.PP
 
74
A few units are treated specially by systemd\&. They have special internal semantics and cannot be renamed\&.
 
75
.SH "SPECIAL SYSTEM UNITS"
 
76
.PP
 
77
basic\&.target
 
78
.RS 4
 
79
A special target unit covering early boot\-up\&.
 
80
.sp
 
81
systemd automatically adds dependencies of the types Requires and After for this target unit to all SysV service units configured for runlevel 1 to 5\&.
 
82
.sp
 
83
Usually this should pull\-in all sockets, mount points, swap devices and other basic initialization necessary for the general purpose daemons\&. Most normal daemons should have dependencies of type After and Requires on this unit\&.
 
84
.RE
 
85
.PP
 
86
ctrl\-alt\-del\&.target
 
87
.RS 4
 
88
systemd starts this target whenever Control+Alt+Del is pressed on the console\&. Usually this should be aliased (symlinked) to
 
89
reboot\&.target\&.
 
90
.RE
 
91
.PP
 
92
dbus\&.service
 
93
.RS 4
 
94
A special unit for the D\-Bus system bus\&. As soon as this service is fully started up systemd will connect to it and register its service\&.
 
95
.RE
 
96
.PP
 
97
default\&.target
 
98
.RS 4
 
99
The default unit systemd starts at bootup\&. Usually this should be aliased (symlinked) to
 
100
multi\-user\&.target
 
101
or
 
102
graphical\&.target\&.
 
103
.sp
 
104
The default unit systemd starts at bootup can be overridden with the
 
105
\fIsystemd\&.unit=\fR
 
106
kernel command line option\&.
 
107
.RE
 
108
.PP
 
109
display\-manager\&.service
 
110
.RS 4
 
111
The display manager service\&. Usually this should be aliased (symlinked) to
 
112
xdm\&.service
 
113
or a similar display manager service\&.
 
114
.sp
 
115
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with a LSB header referring to the
 
116
$x\-display\-manager
 
117
facility, for compatibility with Debian\&.
 
118
.RE
 
119
.PP
 
120
emergency\&.target
 
121
.RS 4
 
122
A special target unit that starts an emergency shell on the main console\&. This unit is supposed to be used with the kernel command line option
 
123
\fIsystemd\&.unit=\fR
 
124
and has otherwise little use\&.
 
125
.RE
 
126
.PP
 
127
graphical\&.target
 
128
.RS 4
 
129
A special target unit for setting up a graphical login screen\&. This pulls in
 
130
multi\-user\&.target\&.
 
131
.sp
 
132
Units that are needed for graphical login shall add Wants dependencies for their unit to this unit (or
 
133
multi\-user\&.target) during installation\&.
 
134
.RE
 
135
.PP
 
136
halt\&.target
 
137
.RS 4
 
138
A special target unit for shutting down and halting the system\&.
 
139
.sp
 
140
Applications wanting to halt the system should start this unit\&.
 
141
.RE
 
142
.PP
 
143
kbrequest\&.target
 
144
.RS 4
 
145
systemd starts this target whenever Alt+ArrowUp is pressed on the console\&. This is a good candidate to be aliased (symlinked) to
 
146
rescue\&.target\&.
 
147
.RE
 
148
.PP
 
149
local\-fs\&.target
 
150
.RS 4
 
151
systemd automatically adds dependencies of type After to all mount units that refer to local mount points for this target unit\&. In addition, systemd adds dependencies of type Wants to this target unit for those mounts listed in
 
152
/etc/fstab
 
153
that have the
 
154
\fBauto\fR
 
155
and
 
156
\fBcomment=systemd\&.mount\fR
 
157
mount options set\&.
 
158
.sp
 
159
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
160
$local_fs
 
161
facility\&.
 
162
.RE
 
163
.PP
 
164
local\-fs\-pre\&.target
 
165
.RS 4
 
166
This target unit is automatically ordered before all local mount points marked with
 
167
\fBauto\fR
 
168
(see above)\&. It can be used to execute certain units before all local mounts\&.
 
169
.RE
 
170
.PP
 
171
mail\-transfer\-agent\&.target
 
172
.RS 4
 
173
The mail transfer agent (MTA) service\&. Usually this should pull\-in all units necessary for sending/receiving mails on the local host\&.
 
174
.sp
 
175
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
176
$mail\-transfer\-agent
 
177
or
 
178
$mail\-transport\-agent
 
179
facilities, for compatibility with Debian\&.
 
180
.RE
 
181
.PP
 
182
multi\-user\&.target
 
183
.RS 4
 
184
A special target unit for setting up a multi\-user system (non\-graphical)\&. This is pulled in by
 
185
graphical\&.target\&.
 
186
.sp
 
187
Units that are needed for a multi\-user system shall add Wants dependencies to this unit for their unit during installation\&.
 
188
.RE
 
189
.PP
 
190
network\&.target
 
191
.RS 4
 
192
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
193
$network
 
194
facility\&.
 
195
.RE
 
196
.PP
 
197
nss\-lookup\&.target
 
198
.RS 4
 
199
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
200
$named
 
201
facility\&.
 
202
.RE
 
203
.PP
 
204
poweroff\&.target
 
205
.RS 4
 
206
A special target unit for shutting down and powering off the system\&.
 
207
.sp
 
208
Applications wanting to power off the system should start this unit\&.
 
209
.sp
 
210
runlevel0\&.target
 
211
is an alias for this target unit, for compatibility with SysV\&.
 
212
.RE
 
213
.PP
 
214
reboot\&.target
 
215
.RS 4
 
216
A special target unit for shutting down and rebooting the system\&.
 
217
.sp
 
218
Applications wanting to reboot the system should start this unit\&.
 
219
.sp
 
220
runlevel6\&.target
 
221
is an alias for this target unit, for compatibility with SysV\&.
 
222
.RE
 
223
.PP
 
224
remote\-fs\&.target
 
225
.RS 4
 
226
Similar to
 
227
local\-fs\&.target, but for remote mount points\&.
 
228
.sp
 
229
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
230
$remote_fs
 
231
facility\&.
 
232
.RE
 
233
.PP
 
234
remote\-fs\-pre\&.target
 
235
.RS 4
 
236
This target unit is automatically ordered before all remote mount points marked with
 
237
\fBauto\fR
 
238
(see above)\&. It can be used to execute certain units before all remote mounts\&.
 
239
.RE
 
240
.PP
 
241
rescue\&.target
 
242
.RS 4
 
243
A special target unit for setting up the base system and a rescue shell\&.
 
244
.sp
 
245
runlevel1\&.target
 
246
is an alias for this target unit, for compatibility with SysV\&.
 
247
.RE
 
248
.PP
 
249
rpcbind\&.target
 
250
.RS 4
 
251
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
252
$rpcbind
 
253
facility\&.
 
254
.RE
 
255
.PP
 
256
runlevel2\&.target
 
257
.RS 4
 
258
This is a target that is called whenever the SysV compatibility code asks for runlevel 2\&. It is a good idea to make this an alias for (i\&.e\&. symlink to)
 
259
multi\-user\&.target\&.
 
260
.RE
 
261
.PP
 
262
runlevel3\&.target
 
263
.RS 4
 
264
This is a target that is called whenever the SysV compatibility code asks for runlevel 3\&. It is a good idea to make this an alias for (i\&.e\&. symlink to)
 
265
multi\-user\&.target
 
266
or
 
267
graphical\&.target\&.
 
268
.RE
 
269
.PP
 
270
runlevel4\&.target
 
271
.RS 4
 
272
This is a target that is called whenever the SysV compatibility code asks for runlevel 4\&. It is a good idea to make this an alias for (i\&.e\&. symlink to)
 
273
multi\-user\&.target
 
274
or
 
275
graphical\&.target\&.
 
276
.RE
 
277
.PP
 
278
runlevel5\&.target
 
279
.RS 4
 
280
This is a target that is called whenever the SysV compatibility code asks for runlevel 5\&. It is a good idea to make this an alias for (i\&.e\&. symlink to)
 
281
multi\-user\&.target
 
282
or
 
283
graphical\&.target\&.
 
284
.RE
 
285
.PP
 
286
shutdown\&.target
 
287
.RS 4
 
288
A special target unit that terminates the services on system shutdown\&.
 
289
.sp
 
290
Services that shall be terminated on system shutdown shall add Conflicts dependencies to this unit for their service unit, which is implicitly done when
 
291
\fIDefaultDependencies=yes\fR
 
292
is set (the default)\&.
 
293
.sp
 
294
systemd automatically adds dependencies of type Conflicts to this target unit for all SysV init script service units that shall be terminated in SysV runlevels 0 or 6\&.
 
295
.RE
 
296
.PP
 
297
sigpwr\&.target
 
298
.RS 4
 
299
A special target that is started when systemd receives the SIGPWR process signal, which is normally sent by the kernel or UPS daemons when power fails\&.
 
300
.RE
 
301
.PP
 
302
sockets\&.target
 
303
.RS 4
 
304
A special target unit that sets up all service sockets\&.
 
305
.sp
 
306
Services that can be socket\-activated shall add Wants dependencies to this unit for their socket unit during installation\&.
 
307
.RE
 
308
.PP
 
309
swap\&.target
 
310
.RS 4
 
311
Similar to
 
312
local\-fs\&.target, but for swap partitions and swap files\&.
 
313
.RE
 
314
.PP
 
315
sysinit\&.target
 
316
.RS 4
 
317
A special target unit covering early boot\-up scripts\&.
 
318
.sp
 
319
systemd automatically adds dependencies of the types Wants and After for all SysV service units configured for runlevels that are not 0 to 6 to this target unit\&. This covers the special boot\-up runlevels some distributions have, such as S or b\&.
 
320
.RE
 
321
.PP
 
322
syslog\&.target
 
323
.RS 4
 
324
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
325
$syslog
 
326
facility\&.
 
327
.RE
 
328
.PP
 
329
systemd\-initctl\&.service
 
330
.RS 4
 
331
This provides compatibility with the SysV /dev/initctl file system FIFO for communication with the init system\&.
 
332
.sp
 
333
This is a socket\-activated service, see
 
334
system\-initctl\&.socket\&.
 
335
.RE
 
336
.PP
 
337
systemd\-initctl\&.socket
 
338
.RS 4
 
339
Socket activation unit for
 
340
system\-initctl\&.service\&.
 
341
.RE
 
342
.PP
 
343
systemd\-stdout\-syslog\-bridge\&.service
 
344
.RS 4
 
345
This is internally used by systemd to provide syslog logging to the processes it maintains\&.
 
346
.sp
 
347
This is a socket\-activated service, see
 
348
system\-stdout\-syslog\-bridge\&.socket\&.
 
349
.RE
 
350
.PP
 
351
systemd\-stdout\-syslog\-bridge\&.socket
 
352
.RS 4
 
353
Socket activation unit for
 
354
system\-stdout\-syslog\-bridge\&.service\&. systemd will automatically add dependencies of types Requires and After to all units that have been configured for stdout or stderr to be connected to syslog or the kernel log buffer\&.
 
355
.RE
 
356
.PP
 
357
systemd\-shutdownd\&.service
 
358
.RS 4
 
359
This is internally used by
 
360
\fBshutdown\fR(8)
 
361
to implement delayed shutdowns\&.
 
362
.sp
 
363
This is a socket\-activated service, see
 
364
system\-shutdownd\&.socket\&.
 
365
.RE
 
366
.PP
 
367
systemd\-shutdownd\&.socket
 
368
.RS 4
 
369
Socket activation unit for
 
370
system\-shutdownd\&.service\&.
 
371
.RE
 
372
.PP
 
373
time\-sync\&.target
 
374
.RS 4
 
375
systemd automatically adds dependencies of type After for this target unit to all SysV init script service units with an LSB header referring to the
 
376
$time
 
377
facility\&.
 
378
.RE
 
379
.PP
 
380
umount\&.target
 
381
.RS 4
 
382
A special target unit that umounts all mount and automount points on system shutdown\&.
 
383
.sp
 
384
Mounts that shall be unmounted on system shutdown shall add Conflicts dependencies to this unit for their mount unit, which is implicitly done when
 
385
\fIDefaultDependencies=yes\fR
 
386
is set (the default)\&.
 
387
.RE
 
388
.SH "SPECIAL USER UNITS"
 
389
.PP
 
390
When systemd runs as a user instance, the following special units are available, which have similar definitions as their system counterparts:
 
391
default\&.target,
 
392
local\-fs\&.target,
 
393
remote\-fs\&.target,
 
394
shutdown\&.target,
 
395
sockets\&.target,
 
396
swap\&.target\&.
 
397
.PP
 
398
In addition the following special unit is understood only when systemd runs as service instance:
 
399
.PP
 
400
exit\&.service
 
401
.RS 4
 
402
A special service unit for shutting down the user service manager\&.
 
403
.sp
 
404
Applications wanting to terminate the user service manager should start this unit\&. If systemd receives SIGTERM or SIGINT when running as user service daemon it will start this unit\&.
 
405
.sp
 
406
Normally, this pulls in
 
407
shutdown\&.target
 
408
which in turn should be conflicted by all units that want to be shut down on user service manager exit\&.
 
409
.RE
 
410
.SH "SEE ALSO"
 
411
.PP
 
412
 
 
413
\fBsystemd.unit\fR(5),
 
414
\fBsystemd.service\fR(5),
 
415
\fBsystemd.socket\fR(5),
 
416
\fBsystemd.target\fR(5)
 
417
.SH "AUTHOR"
 
418
.PP
 
419
\fBLennart Poettering\fR <\&lennart@poettering\&.net\&>
 
420
.RS 4
 
421
Developer
 
422
.RE