]> git.proxmox.com Git - systemd.git/blame - man/coredump.conf.5
Imported Upstream version 221
[systemd.git] / man / coredump.conf.5
CommitLineData
e842803a 1'\" t
86f210e9 2.TH "COREDUMP\&.CONF" "5" "" "systemd 221" "coredump.conf"
e842803a
MB
3.\" -----------------------------------------------------------------
4.\" * Define some portability stuff
5.\" -----------------------------------------------------------------
6.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7.\" http://bugs.debian.org/507673
8.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10.ie \n(.g .ds Aq \(aq
11.el .ds Aq '
12.\" -----------------------------------------------------------------
13.\" * set default formatting
14.\" -----------------------------------------------------------------
15.\" disable hyphenation
16.nh
17.\" disable justification (adjust text to left margin only)
18.ad l
19.\" -----------------------------------------------------------------
20.\" * MAIN CONTENT STARTS HERE *
21.\" -----------------------------------------------------------------
22.SH "NAME"
f47781d8 23coredump.conf, coredump.conf.d \- Coredump storage configuration files
e842803a
MB
24.SH "SYNOPSIS"
25.PP
26/etc/systemd/coredump\&.conf
f47781d8
MP
27.PP
28/etc/systemd/coredump\&.conf\&.d/*\&.conf
29.PP
30/run/systemd/coredump\&.conf\&.d/*\&.conf
31.PP
32/usr/lib/systemd/coredump\&.conf\&.d/*\&.conf
e842803a
MB
33.SH "DESCRIPTION"
34.PP
f47781d8
MP
35These files configure the behaviour of
36\fBsystemd-coredump\fR(8), a handler for core dumps invoked by the kernel\&.
37.SH "CONFIGURATION DIRECTORIES AND PRECEDENCE"
38.PP
e3bff60a
MP
39Default configuration is defined during compilation, so a configuration file is only needed when it is necessary to deviate from those defaults\&. By default the configuration file in
40/etc/systemd/
41contains commented out entries showing the defaults as a guide to the administrator\&. This file can be edited to create local overrides\&.
f47781d8 42.PP
e3bff60a
MP
43When packages need to customize the configuration, they can install configuration snippets in
44/usr/lib/systemd/*\&.conf\&.d/\&. Files in
f47781d8 45/etc/
e3bff60a
MP
46are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages\&. The main configuration file is read before any of the configuration directories, and has the lowest precedence; entries in a file in any configuration directory override entries in the single configuration file\&. Files in the
47*\&.conf\&.d/
48configuration subdirectories are sorted by their filename in lexicographic order, regardless of which of the subdirectories they reside in\&. If multiple files specify the same option, the entry in the file with the lexicographically latest name takes precedence\&. It is recommended to prefix all filenames in those subdirectories with a two\-digit number and a dash, to simplify the ordering of the files\&.
f47781d8 49.PP
e3bff60a 50To disable a configuration file supplied by the vendor, the recommended way is to place a symlink to
f47781d8
MP
51/dev/null
52in the configuration directory in
53/etc/, with the same filename as the vendor configuration file\&.
e842803a
MB
54.SH "OPTIONS"
55.PP
56All options are configured in the
57"[Coredump]"
58section:
59.PP
60\fIStorage=\fR
61.RS 4
62Controls where to store cores\&. One of
63"none",
64"external",
65"journal", and
66"both"\&. When
67"none", the coredumps will be logged but not stored permanently\&. When
68"external"
69(the default), cores will be stored in
70/var/lib/systemd/coredump\&. When
71"journal", cores will be stored in the journal and rotated following normal journal rotation patterns\&. When
72"both", cores will be stored in both locations\&.
73.sp
74When cores are stored in the journal, they might be compressed following journal compression settings, see
75\fBjournald.conf\fR(5)\&. When cores are stored externally, they will be compressed by default, see below\&.
76.RE
77.PP
78\fICompress=\fR
79.RS 4
f47781d8 80Controls compression for external storage\&. Takes a boolean argument, defaults to
e842803a
MB
81"yes"\&.
82.RE
83.PP
84\fIProcessSizeMax=\fR
85.RS 4
86The maximum size in bytes of a core which will be processed\&. Coredumps exceeding this size will be logged, but the backtrace will not be generated and the core will not be stored\&.
87.RE
88.PP
89\fIExternalSizeMax=\fR, \fIJournalSizeMax=\fR
90.RS 4
91The maximum (uncompressed) size in bytes of a core to be saved\&.
92.RE
93.PP
94\fIMaxUse=\fR, \fIKeepFree=\fR
95.RS 4
96Enforce limits on the disk space taken up by externally stored coredumps\&.
97\fBMaxUse=\fR
98makes sure that old coredumps are removed as soon as the total disk space taken up by coredumps grows beyond this limit (defaults to 10% of the total disk size)\&.
99\fBKeepFree=\fR
5eef597e 100controls how much disk space to keep free at least (defaults to 15% of the total disk size)\&. Note that the disk space used by coredumps might temporarily exceed these limits while coredumps are processed\&. Note that old coredumps are also removed based on time via
e3bff60a 101\fBsystemd-tmpfiles\fR(8)\&. Set either value to 0 to turn off size based clean\-up\&.
e842803a
MB
102.RE
103.SH "SEE ALSO"
104.PP
105\fBsystemd-journald.service\fR(8),
106\fBcoredumpctl\fR(1),
107\fBsystemd-tmpfiles\fR(8)