Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/tmp nach reboot leer

9 views
Skip to first unread message

Stefan Heimers

unread,
May 18, 2016, 3:58:31 AM5/18/16
to
Hallo allerseits,

Ich habe ein kleines Problem mit meinem Debian Version 8.

In /etc/default/rcS habe ich TMPTIME=30 gesetzt. Trotzdem ist mein /tmp
nach einem Reboot am nächsten Tag leer. Sollten nicht nur Files gelöscht
werden, die älter als 30 Tage sind?

/tmp ist bei meinem System ein Verzeichnit im root-Filesystem. Erst dachte
ich, ich hätte viellecht aus Versehen eine Ramdisk mit tmpfs angelegt, aber
das ist es nicht.

heimers@foehr:/tmp$ df /tmp/
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/dm-0 19092180 10387444 8297760 56% /


Was mache ich falsch? Wurde bei Debian etwas am Umgang mit /tmp geändert?


Felix Rauch

unread,
May 24, 2016, 2:30:02 AM5/24/16
to
Stefan Heimers <stefan...@heimers.ch> wrote:
> In /etc/default/rcS habe ich TMPTIME=30 gesetzt. Trotzdem ist mein /tmp
> nach einem Reboot am n?chsten Tag leer. Sollten nicht nur Files gel?scht
> werden, die ?lter als 30 Tage sind?

Ich kenne Debian nicht speziell, aber ich dachte eigentlich das
klassischerweise /tmp bei jedem Neustart geloescht wird. Schliesslich
ist es -- wie der Name schon sagt -- TeMPoraer ;-)

- Felix

--
Felix Rauch, http://www.trash.net/~xilef/
This article contains my personal view only! Use of my addresses for marketing
purposes is hereby strictly prohibited according to applicable laws.

Marc SCHAEFER

unread,
May 24, 2016, 5:35:23 AM5/24/16
to
Felix Rauch <fe...@nice.ch> wrote:
> Ich kenne Debian nicht speziell, aber ich dachte eigentlich das
> klassischerweise /tmp bei jedem Neustart geloescht wird. Schliesslich
> ist es -- wie der Name schon sagt -- TeMPoraer ;-)

In my wheezy, /etc/init.d/checkroot-bootclean.sh is run and does:

clean_all

defined in /lib/init/bootclean.sh as e.g.:

clean_tmp

which looks like it take in account TMPTIME.

However, maybe you run jessie, which has changed from standard SYSV
init.d to the marvellous systemd, and not all scripts and configurations
have been migrated.

Notably, when you change a /etc/default file (maybe rcS, too), you need,
on jessie with systemd enabled, to do something like:

systemctl reload-daemon

I will try to attempt from not using jessie until it wheezy LTS gets EOL'd
(in about two years), and when it does, I hope its replacement will
be a bit more mature.

Meanwhile I am testing jessie in one system, and it works: it's very
loud (systemd chatters infinitely in the system logs, thank you logcheck
for filtering it for me). systemd is definitely something very nicely
designed and has some interesting features, so far none of them I required
in the last 20 years of using Linux with init.d scripts.

(yes, you can run sysv in jessie, but I expect it -- without having
tested -- to be as broken)

Benoit Panizzon

unread,
May 30, 2016, 8:06:27 AM5/30/16
to
> However, maybe you run jessie, which has changed from standard SYSV
> init.d to the marvellous systemd

* LIKE * :-)

Tom of artScape cybernetics

unread,
Aug 13, 2016, 9:39:13 AM8/13/16
to

Thanks a lot Marc!

I am a passionate debian user, but did not have the time yet to catch up
with jessie.

Best Regards

Tom
0 new messages