* John Andersen <jsamyth@gmail.com> [02-22-15 14:34]:
On 02/22/2015 07:46 AM, Patrick Shanahan wrote:
Seems you have been somewhat overly aggressive in trimming. My post is: <quote> The tmp.conf in /etc/tmpfiles.d/ is for maintaining config over updates and is the last/final word. Some experimenting reveals a possible solution. It appears that there is no default time or it is beyond expectations. The following change helps: d /tmp 1777 root root 2d - d /var/tmp 1777 root root 2d - note the added "2d" and it's position. This is described in the man file but it's usage not clear until it is correctly applied and just works. One thing I still do not understand is the cleaning of files in directories marked "PrivateTmp=yes", nor can I find an effective override. Files below those directories *are* cleared/removed/cleaned, but not the directories. Seems this would eventially cause a problem. ps: I set my "tmp" cleaning to four hours: d /tmp 1777 root root 4d - d /var/tmp 1777 root root 4d - </quote>
This is described in the man file but it's usage not clear
Which man page???
man tempfiles.d <quote> Age The date field, when set, is used to decide what files to delete when cleaning. If a file or directory is older than the current time minus the age field, it is deleted. The field format is a series of integers each followed by one of the following postfixes for the respective time units: s, min, h, d, w, ms, m, us If multiple integers and units are specified, the time values are summed up. If an integer is given without a unit, s is assumed. When the age is set to zero, the files are cleaned unconditionally. The age field only applies to lines starting with d, D, and x. If omitted or set to "-", no automatic clean-up is done. </quote> Effectively aiui, the default, "-" precludes automatic cleaning.
until it is correctly applied and just works. One thing I still do not understand is the cleaning of files in directories marked "PrivateTmp=yes", nor can I find an effective override. Files below those directories *are* cleared/removed/cleaned, but not the directories. Seems this would
Is that what /etc/tmpdirs.d is for perhaps?
Not from my reading and understanding, or not. /etc/tmpdirs.d/tmp.conf is for persistance and overriding default supplied and to preclude changing your desires when an updated package is installed, similar to using ignore.local in /etc/logdigest/.
eventially cause a problem.
ps: I set my "tmp" cleaning to four hours: d /tmp 1777 root root 4d - d /var/tmp 1777 root root 4d -
Is that hours or days?
That is days "d", but was intended hours "h". Typo here, too much hurry. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org