Results 1 to 5 of 5

Thread: Clear TMP at boot in 13.2?

  1. #1

    Default Clear TMP at boot in 13.2?

    For 13.1 I have used this - https://forums.opensuse.org/entry.ph...-Files-at-Boot In 13.2 there are no such options. What should I do?

  2. #2

    Default Re: Clear TMP at boot in 13.2?

    Quote Originally Posted by Wurger View Post
    For 13.1 I have used this - https://forums.opensuse.org/entry.ph...-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:
    https://www.suse.com/releasenotes/x8...systemd-tmpdir

    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/en...k-systemd.html for how to set it up now.
    Last edited by wolfi323; 11-Nov-2014 at 04:00.

  3. #3

    Default Re: Clear TMP at boot in 13.2?

    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/x8...systemd-tmpdir and I do not have to do anything?

  4. #4

    Default Re: Clear TMP at boot in 13.2?

    Quote Originally Posted by Wurger View Post
    Do I understand it correct that right now it is cleaned daily as written here: https://www.suse.com/releasenotes/x8...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:
    Code:
    # 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.)
    Code:
    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.
    Last edited by wolfi323; 11-Nov-2014 at 05:55.

  5. #5

    Default Re: Clear TMP at boot in 13.2?

    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?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •