[systemd-devel] unable to attach pid to service delegated directory in unified mode after restart

Lennart Poettering lennart at poettering.net
Wed Mar 16 16:02:20 UTC 2022


On Di, 15.03.22 16:35, Felip Moll (felip at schedmd.com) wrote:

> > I don't follow. You can enable delegation on the scope. I mean, that's
> > the reason I suggested to use a scope.
> >
> >
> Meaning that it would be great to have a delegated cgroup subtree without
> the need of a service or scope.
> Just an empty subtree.

That's what a scope is. I don't follow?

What do you think a scope is beyond that? It just encapsulates a
cgroup subtree. It auto-cleans it though once it goes empty, and
because it does that it also requires you to provide at least one PID
to add to the scope when it is created.

For services we have a RemainAfterExit= property btw. There were
requests for adding the same for scopes. I'd be fine with adding that,
happy to take a patch.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list