[Bug 721682] New: CLEAR_TMP_DIRS_AT_BOOTUP does not work
https://bugzilla.novell.com/show_bug.cgi?id=721682 https://bugzilla.novell.com/show_bug.cgi?id=721682#c0 Summary: CLEAR_TMP_DIRS_AT_BOOTUP does not work Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: nrickert@ameritech.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20100101 Firefox/7.0 I have set CLEAR_TMP_DIRS_AT_BOOTUP to "yes". After rebooting, I still see old files in "/tmp". Reproducible: Always Steps to Reproduce: 1.Set CLEAR_TMP_DIRS_AT_BOOTUP to yes via Yast. 2.Reboot 3.ls -l /tmp ## see what is still there in "/tmp" Actual Results: Old files, dating from install time (yesterday) are still in "/tmp" Expected Results: There should only be files with file times as system boot time or later. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c1
Jean-Daniel Dodin
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c2
Benjamin Poirier
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c3
--- Comment #3 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c4
--- Comment #4 from Jean-Daniel Dodin
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c5
Michael Hofmann
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c6
Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c7
--- Comment #7 from Michael Hofmann
Either CLEAR_TMP_DIRS_AT_BOOTUP should work, or the documentation should change to stop mentioning this option. I prefer the first of those choices.
QFT. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c8
Matthias Pfafferodt
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c9
--- Comment #9 from Michael Hofmann
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c10
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c11
mike willis
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c12
--- Comment #12 from Neil Rickert
cd /etc/init.d/ ./boot.cleanup start
Interesting workaround. I'm hesitant to try that, because by the time "boot.local" is run, there might already be other processes started that are using "/tmp". The clearing really needs to be done immediately after the file system mounts, and before starting various server processes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c13
Tim Edwards
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c14
--- Comment #14 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c15
--- Comment #15 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c16
--- Comment #16 from Benjamin Poirier
cd /etc/init.d/ ./boot.cleanup start
Interesting workaround.
I'm hesitant to try that, because by the time "boot.local" is run, there might already be other processes started that are using "/tmp". The clearing really needs to be done immediately after the file system mounts, and before starting various server processes.
Good point, /etc/init.d/boot.local contains the following comment though: # Here you should add things, that should happen directly after booting # before we're going to the first run level. Sounds safe... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c17
Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c18
--- Comment #18 from Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c19
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c20
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c21
Neil Rickert
Is this issue still valid on openSUSE 13.1?
Probably, though I haven't tested it recently. I'll test when I next boot. The way systemd handles this is incompatible with the old way. So either the variable in "/etc/sysconfig/cron" should be removed, or should be documented as only applying to sysvinit (if that is still an option). Perhaps that whole file is outdated. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c22
--- Comment #22 from Benjamin Poirier
Is this issue still valid on openSUSE 13.1?
I can confirm that the problem is still present. Moreover, for interested users, here is a way to get the desired behavior via systemd. Create /etc/tmpfiles.d/tmp.conf to override /usr/lib/tmpfiles.d/tmp.conf and edit it according to tmpfiles.d(5). Here is my /etc/tmpfiles.d/tmp.conf, it clears /tmp during boot: # This file is part of systemd. # # systemd is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # See tmpfiles.d(5) for details # Clear tmp directories separately, to make them easier to override D /tmp 1777 root root - d /var/tmp 1777 root root - -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c23
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c
Wojtek Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c27
--- Comment #27 from Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c28
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c29
Klaus Wolf
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c30
Wojtek Dziewięcki
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c31
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c32
--- Comment #32 from Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c33
--- Comment #33 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c35
--- Comment #35 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=721682
https://bugzilla.novell.com/show_bug.cgi?id=721682#c37
Ruediger Oertel
http://bugzilla.novell.com/show_bug.cgi?id=721682
--- Comment #45 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com