Früher konnte man das in yast einstellen, nach wievielen tagen man sein /tmp gelöscht haben will, das geht nicht meh, bin ich jetzt per zufall draufgekommen.
es gibt eine anleitung:
und dann die datei /etc/tmpfiles.d/tmp.conf editiieren in dem man ein "D voranstellung und zb. 2d für 2 tage hinzufügt. ich hab die datei editiert aber es funktionierit nicht
die datei /usr/lib/tmpfiles.d/tmp.conf existiert bei mir gar nicht, ich hab einfach /etc/tmpfiles.d/tmp.conf editiert.
es gibt eine anleitung:
Code:
cp /usr/lib/tmpfiles.d/tmp.conf /etc/tmpfiles.d/tmp.conf
und dann die datei /etc/tmpfiles.d/tmp.conf editiieren in dem man ein "D voranstellung und zb. 2d für 2 tage hinzufügt. ich hab die datei editiert aber es funktionierit nicht
Code:
Okt 19 07:52:10 localhost systemd[1]: Starting Cleanup of Temporary Directories...
Okt 19 07:52:10 localhost systemd-tmpfiles[12206]: /usr/lib/tmpfiles.d/net-snmp.conf:1: Line references path below legacy directory /v>
Okt 19 07:52:10 localhost systemd-tmpfiles[12206]: /etc/tmpfiles.d/tmp.conf:12: Duplicate line for path "/tmp", ignoring.
Okt 19 07:52:10 localhost systemd-tmpfiles[12206]: /etc/tmpfiles.d/tmp.conf:13: Duplicate line for path "/var/tmp", ignoring.
Okt 19 07:52:11 localhost systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Okt 19 07:52:11 localhost systemd[1]: Finished Cleanup of Temporary Directories.
die datei /usr/lib/tmpfiles.d/tmp.conf existiert bei mir gar nicht, ich hab einfach /etc/tmpfiles.d/tmp.conf editiert.