[systemd-devel] systemd-namespace-* cleaning?

Lennart Poettering lennart at poettering.net
Wed May 2 18:05:03 PDT 2012


On Wed, 25.04.12 09:57, Tom Gundersen (teg at jklm.no) wrote:

> 
> On Wed, Apr 25, 2012 at 9:34 AM, Colin Guthrie <gmane at colin.guthr.ie> wrote:
> > Is there any defined strategy for tidying up the
> > /tmp/systemd-namespace-* folders (other than /tmp on tmpfs)?
> >
> > Nothing seems to be shipped by default in the tmpfiles.d stuff and it
> > should really be on service stop that this is cleanup up anyway I believe.
> 
> IIUC, currently a new namespace is set up before each Exec* and never destroyed.
> 
> I did some work (but did not finish testing it) on refactoring the
> namespace stuff so that a namespace is set up before ExecStartPre,
> then used by all the Exec*s of the service and finally destroyed after
> ExecStopPost. I think this is the right way to go, but sadly have not
> had time to finish it up.

Yes, I am quite sure, too, that we should maintain the same namespace dir
across the whole lifetime of the service.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list