For 13.1 I have used this - https://forums.opensuse.org/entry.php/91-Clear-Temp-Files-at-Boot In 13.2 there are no such options. What should I do?
This is completely outdated, and doesn’t even work in 13.1 already.
Not even in 12.3, as you can see in the release notes:
This section also explains how you can set that up with systemd.
PS: The last comment on that article you linked to mentions this as well (it actually doesn’t work any more since 12.1 when systemd is in use which is the default since then). And it points to http://forums.opensuse.org/forums/english/get-technical-help-here/install-boot-login/470607-clear-tmp-boot-doesnt-work-systemd.html for how to set it up now.
Well I had a crash long time ago and I did this every time I did a fresh install without digging into the problem after that crash.Do I understand it correct that right now it is cleaned daily as written here: https://www.suse.com/releasenotes/x86_64/openSUSE/12.3/#sec.123.systemd-tmpdir and I do not have to do anything?
No. People complained about the “change of behaviour” in 12.3 (and because they “lost their data!”), so it got disabled by default again.
Since 13.1, /usr/lib/tmpfiles.d/tmp.conf contains this:
# Clear tmp directories separately, to make them easier to override
# SUSE policy: we don't clean those directories
d /tmp 1777 root root -
d /var/tmp 1777 root root -
To change it, copy that file to /etc/tmpfiles.d/tmp.conf and edit it accordingly, as mentioned in the release notes.
You should change the entries to something like this: (I thought that was mentioned in the release notes as well? Hm.)
d /tmp 1777 root root 1d
d /var/tmp 1777 root root 10d
This clears files in /tmp that are older than 1 day, and in /var/tmp older than 10 days, e.g.
See also “man tmpfiles.d” for more details.
Note that this is not only cleared at boot, but also daily in the running system.
The cleaning is handled by systemd-tmpfiles-clean.service, which is started daily (and 15 minutes after boot-up) by systemd-tmpfiles-clean.timer.
OK. Thank you for your extensive help.I did as recomended and copied the whole file to that other file and saved with recomended changes.As a clarification - I do not read manuals - from your point of view I might be an idiot not doeing so but I’m just a regular user - install, use firefox, gimp libre office and that is it. Consider me as a Windows user who jumped ship. People like me do not read it - which is bad as this example shows but who reads Windows manuals?