
On 13.02.2024 10:11, Attila Pinter via openSUSE Factory wrote: ...
$ cat /usr/lib/tmpfiles.d/fs-var-tmp.conf d /var/tmp 1777 root root -
It is supposed to be NOT cleaned by default at all.
Wait, since when? O_O
Historically this was the exact difference between /tmp and /var/tmp - /tmp was supposed to be thrown out on reboot and /var/tmp was supposed to be preserved.
This is news to me considering:
[1]"Automatic Clean-Up By default, systemd-tmpfiles will apply a concept of ⚠️ “ageing” to all files and directories stored in /tmp/ and /var/tmp/. This means that files that have neither been changed nor read within a specific time frame are automatically removed in regular intervals. (This concept is not new to systemd-tmpfiles, it’s inherited from previous subsystems such as tmpwatch.) By default files in /tmp/ are cleaned up after 10 days, and those in /var/tmp after 30 days."
Yes, upstream systemd sets up periodical cleaning of /var/tmp. I guess this is SUSE specific to be more compatible with the legacy behavior.