Hello,
I have found some files/folders in /tmp that I thought they had to be deleted because of age.
My /usr/lib/tmpfiles.d/tmp.conf is: # Clear tmp directories separately, to make them easier to override v /tmp 1777 root root 10d v /var/tmp 1777 root root 30d
# Exclude namespace mountpoints created with PrivateTmp=yes x /tmp/systemd-private-%b-* X /tmp/systemd-private-%b-*/tmp x /var/tmp/systemd-private-%b-* X /var/tmp/systemd-private-%b-*/tmp
And my /usr/lib/systemd/system/systemd-tmpfiles-clean.timer is: [Unit] Description=Daily Cleanup of Temporary Directories Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
[Timer] OnBootSec=15min OnUnitActiveSec=1d
With these files I supposed that a file with more than 10 days in /tmp would be automatically deleted, but today I have found some files/folders with more than 10 days.
What I have done wrong?
Thanks.
--On Wednesday, April 07, 2021 9:00 AM +0000 Gestió Servidors sysadmin.caos@uab.cat wrote:
With these files I supposed that a file with more than 10 days in /tmp would be automatically deleted, but today I have found some files/folders with more than 10 days.
What I have done wrong?
The test is on access time, not modification. Have they been read in the last 10 days?
On 4/7/21 7:27 AM, Kenneth Porter wrote:
--On Wednesday, April 07, 2021 9:00 AM +0000 Gestió Servidors sysadmin.caos@uab.cat wrote:
With these files I supposed that a file with more than 10 days in /tmp would be automatically deleted, but today I have found some files/folders with more than 10 days.
What I have done wrong?
The test is on access time, not modification. Have they been read in the last 10 days?
And note that a GUI file manager might attempt to read every file in a directory in order to determine its type and display the correct icon.