Bug#956435: systemd-coredump: should have a way of deleting core dumps

Russell Coker russell at coker.com.au
Sat Apr 11 08:24:40 BST 2020


reopen 956435
thanks

On Saturday, 11 April 2020 5:17:44 PM AEST Michael Biebl wrote:
> Does does have a way to delete old coredumps and does it automatically.
> 
> $ grep coredump /usr/lib/tmpfiles.d/*
> /usr/lib/tmpfiles.d/systemd.conf:d /var/lib/systemd/coredump 0755 root
> root 3d
> 
> Files that are older then 3 days are deleted automatically.
> You can tweak those settings obviously by providing your own tmpfile
> snippet.

If you just rm files you get the below result where coredumps are described as 
"missing", a proper solution would remove them from the list.

Also whatever the proper solution is deemed to be needs to be documented, the 
man page mentions nothing about this.

Among other things there should be a way of limiting disk space usage to avoid 
running out of free space from large core dumps.

TIME                            PID   UID   GID SIG COREFILE  EXE
Wed 2020-04-08 10:02:41 UTC    2096     0     0  11 present   /usr/sbin/
semodule
Fri 2020-04-10 09:53:03 UTC   54273     0     0  11 present   /usr/sbin/
semodule
Fri 2020-04-10 09:55:30 UTC   54361     0     0  11 present   /usr/sbin/
semodule
Fri 2020-04-10 11:17:41 UTC   56681     0     0   3 missing   /usr/sbin/
load_po>
Fri 2020-04-10 11:34:00 UTC   57546     0     0   3 missing   /usr/sbin/
load_po>
Fri 2020-04-10 11:35:19 UTC   57616     0     0   3 missing   /usr/sbin/
load_po>
Fri 2020-04-10 16:33:49 UTC   70655     0     0  11 present   /usr/sbin/
load_po>
Sat 2020-04-11 04:23:04 UTC   92165     0     0  11 present   /usr/sbin/
semodule

-- 
My Main Blog         http://etbe.coker.com.au/
My Documents Blog    http://doc.coker.com.au/



More information about the Pkg-systemd-maintainers mailing list