projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d71f050
)
tmpfiles: automatically remove old private tmp dirs after reboot
author
Lennart Poettering
<lennart@poettering.net>
Tue, 27 Dec 2016 22:42:53 +0000
(23:42 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 27 Dec 2016 22:54:02 +0000
(23:54 +0100)
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
tmpfiles.d/tmp.conf
patch
|
blob
|
history
diff --git
a/tmpfiles.d/tmp.conf
b/tmpfiles.d/tmp.conf
index 6bbd1aa341e529661862f7cbcaaa8f07b6a932a1..22555a0076d7fae9dbc59d783dfb453849df03b4 100644
(file)
--- a/
tmpfiles.d/tmp.conf
+++ b/
tmpfiles.d/tmp.conf
@@
-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-*