tmpfiles: automatically remove old private tmp dirs after reboot

Let's automatically destory per-unit private temporary directories, as
they are created by PrivateTmp=yes on each boot, if we notice them to be
around, in case they are left-overs from the last boot.

Fixes: #4401
This commit is contained in:
Lennart Poettering 2016-12-27 23:42:53 +01:00
parent d71f050599
commit dc7621a571
1 changed files with 4 additions and 0 deletions

View File

@ -16,3 +16,7 @@ x /tmp/systemd-private-%b-*
X /tmp/systemd-private-%b-*/tmp
x /var/tmp/systemd-private-%b-*
X /var/tmp/systemd-private-%b-*/tmp
# Remove top-level private temporary directories on each boot
R! /tmp/systemd-private-*
R! /var/tmp/systemd-private-*