[systemd-devel] [PATCH] tmpfiles: introduce type X
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Fri Jan 25 08:52:29 PST 2013
On Fri, Jan 25, 2013 at 11:59:14AM +0100, Michal Sekletar wrote:
> Hello,
>
> On Thu, 2013-01-24 at 23:08 +0100, Zbigniew Jędrzejewski-Szmek wrote:
> > Yeah, this seems like a useful thing, but what is the intended usecase?
>
> Intended use case is using this type for /tmp/systemd-private-*
> and /var/tmp/systemd-private-* directories, thus we will never delete
> directory mounted as /tmp of certain service (assuming PrivateTmp=yes).
> Only content will be cleaned up as expected.
>
> Another part of the story is getting rid of a systemd-private*
> directories once they are no longer needed. Marking them with 'X' will
> cause that they are never deleted, but we want to get rid of them once
> they are not needed. I am working on a patch which will introduce
> handling of tmpfiles dirs created for service in a systemd, when service
> terminates. Secondly, all processes created by Execs (i.e. ExecStartPre,
> ExecStart...) will share common tmpfiles dirs.
>
> These ideas are actually conclusion of discussion in one of the threads
> here on mailing list. Further opinions and discussion on this topic
> would be very appreciated.
Thank you for the explanation. Committed, with a link to the bug
and discussion.
I also added 'X /tmp/systemd-private-*' to tmpfiles.d/tmp.conf to
actually use this :)
Zbyszek
More information about the systemd-devel
mailing list