[systemd-devel] Cleaning up transient scopes

Lennart Poettering lennart at poettering.net
Wed Mar 4 15:00:59 PST 2015


On Wed, 04.03.15 18:51, Alexander Larsson (alexl at redhat.com) wrote:

> If i run a transient scope on the user systemd instance like:
> 
> $ systemd-run --user --scope true
> 
> Then the scope seems to live past the end of the process. Is there any
> way to make it automatically go away with the last process in the
> cgroup?

Well, yes, the idea is that that just works. However, this is kinda
broken if the systemd instance managing your scope is not PID 1, as we
don't get SIGCHLD then. 

Do you create any subcgroups? presumably not?

Normally it should just work then, but I must admit that --user scopes
got much less testing that system scopes...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list