FS#30384 - [systemd-tools] systemd-tmpfiles --clean doesn't clean tmp files
Attached to Project:
Arch Linux
Opened by Lukas Jirkovsky (6xx) - Wednesday, 20 June 2012, 17:02 GMT
Last edited by Dave Reisner (falconindy) - Monday, 03 September 2012, 15:00 GMT
Opened by Lukas Jirkovsky (6xx) - Wednesday, 20 June 2012, 17:02 GMT
Last edited by Dave Reisner (falconindy) - Monday, 03 September 2012, 15:00 GMT
|
Details
Description:
When I set the /etc/tmpfiles.d/tmp.conf to: d /tmp 1777 root root 0d d /var/tmp 1777 root root 0d No files are cleaned up by the systemd-tmpfiles --clean (executed by initscripts). Using a short time interval such a 1s doesn't work either. It should be noted that the tool probably scans the disk, because when the /tmp contains a lot of files, it doesn't return immediately but rather it runs for a few seconds. Additional info: systemd-tools 185-1 initscripts 2012.06.1-1 |
This task depends upon
Closed by Dave Reisner (falconindy)
Monday, 03 September 2012, 15:00 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed upstream at some point
Monday, 03 September 2012, 15:00 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed upstream at some point
I forgot to note that I have /tmp on a separate partition – I thought I mentioned it, but it seems I did that only on ML.
When /tmp is a separate partition (and a real block device, not a tmpfs), then files in /tmp are cleaned up, but not the subfolders of /tmp. If /tmp is not a separate partition, or a tmpfs then it works as expected.
In short: I cannot reproduce.
Is something mounted on your chroot folders? What do you mean by "The errors are present in all cases. They errors were shown even when I cleaned up /tmp manually."?
Dave: I'll try that if the Tom's patch won't help. But I'm convinced that systemd-tmpfiles should be able to cope with /tmp being noatime.
FS#30893it was not apparent.