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 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel