On Sunday 12 May 2013 09:17:09 Andrea Turrini wrote:
Hi all, in order to remove [/var]/tmp/systemd-private-* directories that for sure are no more used, I followed Andrey's suggestion [0] and I have created the file
ori@orodruin:~> cat /etc/tmpfiles.d/remove-systemd-private.conf R /tmp/systemd-private-* - - - 3d R /var/tmp/systemd-private-* - - - 3d
but as you can see, I would remove directories that are at least 3 days old.
The problem is that all [/var]/tmp/systemd-private-* are removed except for the one created in the current boot.
I have also tried
R /tmp/systemd-private-* 3d R /var/tmp/systemd-private-* 3d
but with the same result.
So, the question is: how do I remove only directories older than 3 days? Or is this a bug?
Best, Andrea
[0] http://lists.opensuse.org/opensuse/2013-05/msg00125.html
Hello Andrea, What you want to do doesn't work because the "Age" parameter is ignored with the "R" option. See "man tmpfiles.d" for details. Have a look at the file "/usr/lib/tmpfiles.d/tmp.conf". I think that you get what you want if you comment out the two lines starting with an "X". Regards, Erwin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org