[arch-general] tmp files no longer removed

Mantas Mikulėnas grawity at gmail.com
Wed Jun 20 12:24:41 EDT 2012

On Wed, Jun 20, 2012 at 7:05 PM, Lukáš Jirkovský <l.jirkovsky at gmail.com> wrote:
> I dug through the git of initscripts and it seems to be caused by the
> replacement of the original code by the systemd-tmpfiles tool. I've
> just tried to run systemd-tmpfiles manually and it seems that it is
> not able to do even a simple task such as rm -rf /tmp/*.

The default configuration in `/usr/lib/tmpfiles.d/tmp.conf` tells the
tool to only remove files older than 10 days.

To override this, create an `/etc/tmpfiles.d/tmp.conf` that cleans
/tmp regardless of access time:

d /tmp 1777 root root -
d /var/tmp 1777 root root -

Mantas Mikulėnas

More information about the arch-general mailing list