[opensuse-factory] Change: cleanup of /tmp after 10 days
Hi, now that /tmp is on tmpfs, there is a problem if you don't reboot for a longer time: /tmp will fill up your memory over the time. For this reason we will re-enable the systemd rule to cleanup /tmp after 10 days. /var/tmp stays unchanged. At the same time we split fs-var.conf into fs-tmp.conf for /tmp and fs-var-tmp.conf for /var/tmp, so that people can overwrite the rules for /tmp and /var/tmp independently. If you don't use tmpfs on /tmp or don't want to clean it up automatically, cp /usr/lib/tmpfiles.d/fs-tmp.conf to /etc/tmpfiles.d and remove the "10d" from the content. Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Fri, 4 Sep 2020 15:59:44 +0200, Thorsten Kukuk <kukuk@suse.de> wrote:
Hi,
now that /tmp is on tmpfs, there is a problem if you don't reboot for a longer time: /tmp will fill up your memory over the time.
For this reason we will re-enable the systemd rule to cleanup /tmp after 10 days. /var/tmp stays unchanged.
I hope this rule *only* fires when /tmp = tmpfs
At the same time we split fs-var.conf into fs-tmp.conf for /tmp and fs-var-tmp.conf for /var/tmp, so that people can overwrite the rules for /tmp and /var/tmp independently.
If you don't use tmpfs on /tmp or don't want to clean it up automatically, cp /usr/lib/tmpfiles.d/fs-tmp.conf to /etc/tmpfiles.d and remove the "10d" from the content.
Noted
Thorsten
-- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.31 porting perl5 on HP-UX, AIX, and Linux https://useplaintext.email https://tux.nl http://www.test-smoke.org http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
Hi Thorsten, Am 04.09.20 um 15:59 schrieb Thorsten Kukuk:
If you don't use tmpfs on /tmp or don't want to clean it up automatically, cp /usr/lib/tmpfiles.d/fs-tmp.conf to /etc/tmpfiles.d and remove the "10d" from the content.
Are you sure path / filename is correct? strolchi:~ # ls -l /usr/lib/os-release -rw-r--r-- 1 root root 322 Sep 5 05:02 /usr/lib/os-release strolchi:~ # cat /etc/os-release NAME="openSUSE Tumbleweed" # VERSION="20200904" ID="opensuse-tumbleweed" ID_LIKE="opensuse suse" VERSION_ID="20200904" PRETTY_NAME="openSUSE Tumbleweed" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:tumbleweed:20200904" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" LOGO="distributor-logo" strolchi:~ # ls -l /usr/lib/tmpfiles.d/fs-tmp.conf ls: cannot access '/usr/lib/tmpfiles.d/fs-tmp.conf': No such file or directory I already touched /etc/tmpfiles.d/fs-tmp.conf to make sure the possible initial run during package update does not "clean up" my /tmp, but now am confused that after todays update the file in /usr/lib/tmpfiles.d does not exist... -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hello, Am Sonntag, 6. September 2020, 22:05:13 CEST schrieb Stefan Seyfried:
Am 04.09.20 um 15:59 schrieb Thorsten Kukuk:
If you don't use tmpfs on /tmp or don't want to clean it up automatically, cp /usr/lib/tmpfiles.d/fs-tmp.conf to /etc/tmpfiles.d and remove the "10d" from the content.
Are you sure path / filename is correct?
strolchi:~ # ls -l /usr/lib/tmpfiles.d/fs-tmp.conf ls: cannot access '/usr/lib/tmpfiles.d/fs-tmp.conf': No such file or directory
I guess the /tmp/ cleanup didn't reach Tumbleweed yet: https://build.opensuse.org/request/show/832121
I already touched /etc/tmpfiles.d/fs-tmp.conf to make sure the possible initial run during package update does not "clean up" my /tmp, but now am confused that after todays update the file in /usr/lib/tmpfiles.d does not exist...
If I understand the .spec changes right, fs-tmp.conf seems to be the right name. I also created /etc/tmpfiles.d/fs-tmp.conf already - I like some of my tempfiles to be less temporary ;-) Regards, Christian Boltz -- Key Signing Party? Was ist denn das? Kultiges Zusammensitzen und gemeinsames Murmeln magischer Zahlen. -- Gert Döring, FdI 95 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Sun, Sep 06, Stefan Seyfried wrote:
Hi Thorsten,
Am 04.09.20 um 15:59 schrieb Thorsten Kukuk:
If you don't use tmpfs on /tmp or don't want to clean it up automatically, cp /usr/lib/tmpfiles.d/fs-tmp.conf to /etc/tmpfiles.d and remove the "10d" from the content.
Are you sure path / filename is correct?
Yes.
ls: cannot access '/usr/lib/tmpfiles.d/fs-tmp.conf': No such file or directory
That's why I wrote we will enable and not we did enable ... ;) Thorsten -- Thorsten Kukuk, Distinguished Engineer, Senior Architect SLES & MicroOS SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany Managing Director: Felix Imendoerffer (HRB 36809, AG Nürnberg) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hello Thorsten! On 9/7/20 7:31 AM, Thorsten Kukuk wrote:
ls: cannot access '/usr/lib/tmpfiles.d/fs-tmp.conf': No such file or directory
That's why I wrote we will enable and not we did enable ... ;)
I'm not sure whether it's a good idea to retroactively change the volatility of the /tmp directory of existing systems. While I appreciate that you informed users on the Factory mailing lists, I fear that there might be people loosing their data who have important files in their /tmp directory that they haven't backed up yet. At least, RPM should prompt the user to agree with the overwriting mechanism on upgrade, similar to the license agreement prompts. Adrian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Christian Boltz
-
H.Merijn Brand
-
John Paul Adrian Glaubitz
-
Stefan Seyfried
-
Thorsten Kukuk