On 05/05/2013 03:03 PM, Carlos E. R. wrote:
On Sunday, 2013-05-05 at 08:42 -0400, Anton Aylward wrote:
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 no idea, that's why I asked.
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.
This is what I have understood from such discussion, but probably I am wrong.
Take a look at /etc/cron.daily/suse.de-clean-tmp
I would like, but ls: cannot access /etc/cron.daily/suse.de-clean-tmp: No such file or directory In oS 12.2 such file was provided by aaa_base, but in oS 12.3 this file is missing (also yast2 sw_single does not show any package when searching for 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. ···································++-
BTW, my non-comment part of /etc/sysconfig/cron as from installation is: MAX_DAYS_IN_TMP="0" MAX_DAYS_IN_LONG_TMP="0" TMP_DIRS_TO_CLEAR="" LONG_TMP_DIRS_TO_CLEAR="" OWNER_TO_KEEP_IN_TMP="root" CLEAR_TMP_DIRS_AT_BOOTUP="" DAILY_TIME="" MAX_NOT_RUN="5" SEND_MAIL_ON_NO_ERROR="no" SEND_OUTPUT_ON_NO_ERROR="no" SYSLOG_ON_NO_ERROR="no" REINIT_MANDB=yes DELETE_OLD_CATMAN=yes CATMAN_ATIME=7 Now, I have checked the content of /usr/lib/tmpfiles.d/tmp.conf and I am quite surprise that these systemd-private-* directories are kept by choice, and they are also replicated in /var/tmp (with different suffixes): # Exclude namespace mountpoints created with PrivateTmp=yes X /tmp/systemd-private-* X /var/tmp/systemd-private-* So, does this mean that these directories will eventually saturate my / partition? And is it safe to manually remove them? Best, Andrea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org