[systemd-devel] [PATCH] tmpfiles: introduce type X
Michal Sekletar
msekleta at redhat.com
Fri Jan 25 02:59:14 PST 2013
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.
Regards,
Michal Sekletar
More information about the systemd-devel
mailing list