[systemd-devel] [PATCH] Move /tmp and /var/tmp to a separate tmpfiles.d file to ease overrides via /etc

jean-michel.pollion at laposte.net jean-michel.pollion at laposte.net
Mon Aug 15 07:25:58 PDT 2011




> Message du 07/08/11 00:49
> De : "Josh Triplett" 
> A : systemd-devel at lists.freedesktop.org
> Copie à : 
> Objet : [systemd-devel] [PATCH] Move /tmp and /var/tmp to a separate tmpfiles.d file to ease overrides via /etc
>
> Many people prefer to avoid clearing /tmp and /var/tmp, and
> distributions often have explicit settings for how often to clear them
> if at all. Overriding those with systemd currently requires overriding
> all of /usr/lib/tmpfiles.d/systemd.conf via
> /etc/tmpfiles.d/systemd.conf, copying across all the other entries, and
> updating that override when systemd.conf changes.
> 
> Move the /tmp and /var/tmp entries from systemd.conf to a separate
> tmp.conf, making them easier to override without affecting the rest of
> systemd.conf.
> ---
> 
> This change will allow me to create a personal package which ships
> /etc/tmpfiles.d/tmp.conf, without having to include the remainder of
> systemd.conf and update the package every time systemd.conf changes.


Regarding this issue, there's also the fact that the default files do not clear /tmp as they are.
Is it OK to default the type to "D" instead of "d" for /tmp in the systemd.conf file, so that it is cleared on boot?

Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net


More information about the systemd-devel mailing list