On Sunday 12 May 2013, Anton Aylward wrote:
Andrea Turrini said the following on 05/12/2013 09:42 AM:
On 05/12/2013 03:06 PM, Anton Aylward wrote:
Andrea Turrini said the following on 05/12/2013 08:19 AM:
This topic is the use case: how can I remove specific directories inside /tmp after 3 days while keeping the 10 days /tmp general cleaning?
Stated like that it is inadequate.
* Three days after what?
After the creation time, or whatever is used for comparing with the age.
DANGER WILL ROBINSON! DANGER!
Go though the rest of the file system and look at directories that were CREATED many days ago that contain newly created files or at least files that were created long after the directories or the parent directory of those directories were.
We were talking about empty directories, right? Empty directories do not contain newly created files. BTW I'm sure that even systemd is smart enogugh to delete old files first, And then directories only if they are too old AND EMPTY.
* Why? Are they taking up needed space?
They are filling /tmp thus making more difficult to visually look for files in /tmp. And I do not see why if they are not taking up needed space, then this should not be a problem. Are you saying that since they do not take up needed space, then it is OK to let them to fill [/var]/tmp without bounds?
First, what's this 'without bounds'?
Second, are they really taking up space? Try running 'df' and see if your /tmp is critical.
it sounds like this is an aesthetic argument, which is really unanswerable.
If space would be the ONLY reason to delete anything then we should clean up dependent on disk usage instead of times only. cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org