Bug#942511: systemd: Excludes in tmpfiles.d do not work

Michael Biebl biebl at debian.org
Thu Oct 17 13:31:34 BST 2019


Am 17.10.19 um 13:33 schrieb Michael Biebl:
> Maybe this is a misunderstanding how x/X is supposed to work.
> "D /tmp 1777 root root -" is supposed to clean up /tmp during boot
> unconditionally. It is *not* using age based cleaning.
> 
> This Debian specific change was made as this has always been the
> behaviour in Debian.
> 
> The documentation for the x/X parameter says:
>>        x
>>            Ignore a path during cleaning. Use this type to exclude paths from clean-up as controlled with the Age
>>            parameter
> 
> 
> So x/X having no effect on "D /tmp 1777 root root -" is expected, I'd
> say and they work as documented.
> 
> Please elaborate.

As a side note: I recommend to use tmpfs for /tmp nowadays.
A side-effect of this is, that /tmp is not persistent and automatically
cleaned up on (re)boot.

If you need files to survive a reboot, you should not place them in
/tmp; /var/tmp seems more appropriate in that case.

Regards,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20191017/43107c56/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list