Also unter Leap 15.2 ist die Datei vorhanden. Hier die Konsoleausgabe:
Code
ich@linux:/usr/lib/tmpfiles.d> ls -ls | grep -i tmp.conf
4 -rw-r--r-- 1 root root 632 3. Nov 23:44 systemd-tmp.conf
4 -rw-r--r-- 1 root root 493 3. Nov 23:44 tmp.conf
ich@linux:/usr/lib/tmpfiles.d>
ich@linux:/usr/lib/tmpfiles.d> cat tmp.conf
# 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
# SUSE policy: we don't clean those directories
q /tmp 1777 root root -
q /var/tmp 1777 root root -
ich@linux:/usr/lib/tmpfiles.d>
Alles anzeigen
aber unter /etc/tmpfiles.d/ ist keine tmp.conf zu finden. Also genau das Gegenteil zu Tumbleweed.
Bei Tumbleweed müsste also reichen die Änderung der Datei /etc/tmpfiles.d/tmp.conf
Code: TW - Textauszug aus 'tmp.conf'
# Clear tmp directories separately, to make them easier to override
# SUSE policy: we don't clean those directories
# My policy: clean /tmp daily and /var/tmp/weekly
q /tmp 1777 root root 2d
q /var/tmp 1777 root root 7d
Bei Leap 15.2 wird komplizierter, hier muss die /usr/lib/tmpfiles.d/tmp.conf erst nach /etc/tmpfiles.d/ kopiert werden und dann geändert.
Code: Leap 15.2 - Textauszug aus 'tmp.conf'
# Clear tmp directories separately, to make them easier to override
# SUSE policy: we don't clean those directories
q /tmp 1777 root root 2d
q /var/tmp 1777 root root 7d
Ist das so OK?
Danke im Voraus an
@Sauerland
Gruß, Heinz-Peter