summaryrefslogtreecommitdiffstats
path: root/tmpfiles.d
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-12-05 15:56:54 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-12-06 22:05:20 +0100
commitf8d67130b8b492a1f2eedd07a3189051f98db648 (patch)
tree87c086100b311a1f5df8fe5cdc2580c425521d56 /tmpfiles.d
parentcore: add specifier expansion to AllowedCPUs= and friends (diff)
downloadsystemd-f8d67130b8b492a1f2eedd07a3189051f98db648.tar.xz
systemd-f8d67130b8b492a1f2eedd07a3189051f98db648.zip
coredump: keep core files for two weeks
We have two mechanisms that remove old coredumps: systemd-coredump has parameters based on disk use / remaining disk free, and systemd-tmpfiles does cleanup based on time. The first mechanism should prevent us from using too much disk space in case something is crashing continuously or there are very large core files. The limit of 3 days makes it likely that the core file will be gone by the time the admin looks at the issue. E.g. if something crashes on Friday, the coredump would likely be gone before people are back on Monday to look at it.
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/systemd.conf.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmpfiles.d/systemd.conf.in b/tmpfiles.d/systemd.conf.in
index 3781c579e0..11a45a3f4b 100644
--- a/tmpfiles.d/systemd.conf.in
+++ b/tmpfiles.d/systemd.conf.in
@@ -59,7 +59,7 @@ a+ /var/log/journal/%m/system.journal - - - - group:wheel:r--
{% endif %}
d /var/lib/systemd 0755 root root -
-d /var/lib/systemd/coredump 0755 root root 3d
+d /var/lib/systemd/coredump 0755 root root 2w
# Files and directories in /var/lib/systemd/ephemeral-trees are locked by pid 1 to prevent tmpfiles from
# removing them, and tmpfiles is told to clean up anything in /var/lib/systemd/ephemeral-trees that isn't
# locked unconditionally.