-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2013-05-05 at 08:42 -0400, Anton Aylward wrote:
Andrea Turrini said the following on 05/05/2013 08:06 AM:
Hi all,
after having installed oS 12.3 from scratch two weeks ago, I have found that /tmp contains a lot of systemd-private-* directories. Currently there are 85 of such directories but hopefully they are all empty, so they do not waste too much space.
Is it correct that such directories remain in /tmp? Why are they not removed by systemd on shutdown?
I can't imagine why they are there in the first place.
I have them too, I just looked. It is a fresh 12.3 system installed under vmware player.
Its not the job of systemd to purge /tmp. That's done by a cron job. We've discussed that issue here recently.
Of course it is the job of systemd! Any program creating temporary files should destroy them when they finish. Having a cronjob deleting them is a hack for careless programming.
Take a look at /etc/cron.daily/suse.de-clean-tmp and at /etc/sysconfig/cron
That is deprecated and does not work. It doesn't, because those files are owned by root. And it doesn't because if systemd is running the cron job does not work. See release notes: +++··································· 5.2. 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. ···································++- - -- Cheers, Carlos E. R. (from 12.1 x86_64 "Asparagus" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAlGGWKIACgkQtTMYHG2NR9WqTQCfYnvafSJmAfdcZG56IQrQ9WpY v/UAmwQDOpd6haPrdE36D9SQ8vbxB0pO =4Uv9 -----END PGP SIGNATURE-----