Hallo Suseforum,
hier kommt eine Frage zum Verwalten der "tmp" Verzeichnisse. Wo und wie kann ich die Größe und Verfallszeit einstellen?
danke Euch
Caroline
Hallo Suseforum,
hier kommt eine Frage zum Verwalten der "tmp" Verzeichnisse. Wo und wie kann ich die Größe und Verfallszeit einstellen?
danke Euch
Caroline
Zur Größe: Du kannst dir, wenn du das brauchst, eine Partition mit /tmp erstellen. Macht aber für mich keinen Sinn.
Alles andere siehe hier:
openSUSE 13.2 / Leap - Ordner /tmp löschen
Gilt auch für Leap 4x.
systemd: Cleaning Directories (/tmp and /var/tmp)
By default, systemd cleans tmp directories daily as configured in /usr/lib/tmpfiles.d/tmp.conf. Users can change it by copying /usr/lib/tmpfiles.d/tmp.conf to /etc/tmpfiles.d/tmp.conf and modifying the copied file. It will override /usr/lib/tmpfiles.d/tmp.conf.
Note: systemd does not honor obsolete sysconfig variables in /etc/sysconfig/cron such as TMP_DIRS_TO_CLEAR.
Quelle: openSUSE 12.3 Release Notes
OK, warst schneller, du Schlumpf.
Hatte nämlich zufällig letzte Nacht genau über dieses Thema gelesen (-:
OK, warst schneller
Ja, schon seit 2014 ...
2014...
Besser wäre es gewesen, wenn du schon 2014 die Frage von heute beantwortet hättest.
systemd - systemctl... ist für mich, muss ich leider gestehen, nicht schnell zu erlernen - sehr komplex.
Besser wäre es gewesen, wenn du schon 2014 die Frage von heute beantwortet hättest.
Genau dies tat ich ... man hätte nur nach der Antwort suchen müssen, im Forum, das eine Suchfunktion besitzt und ein Tutorial, in dem viel interessantes steht, was aber leider selten genutzt wird. Genau wie die Suchfunktion des Forum, zu unserem Leidwesen, so das die selben Fragen wieder und wieder und immer wieder gestellt werden
Cleaning Directories (/tmp and /var/tmp)
Hallo Suseforum,
danke das passt. Unter /usr gibt es doch auch noch eins. Wäre es so okay?
D /tmp 1777 root root 2d
D /var/tmp 1777 root root 2d
D /usr/tmp 1777 root root 2d
danke Euch
Caroline
/usr/tmp verweisst auf /var/tmp..
Also brauchst du nur 2 Einträge:
cat /etc/tmpfiles.d/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
D /tmp 1777 root root 3d
D /var/tmp 1777 root root 7d
# Exclude namespace mountpoints created with PrivateTmp=yes
x /tmp/systemd-private-*
x /var/tmp/systemd-private-*
X /tmp/systemd-private-*/tmp
X /var/tmp/systemd-private-*/tmp
Alles anzeigen