Re: Questions regarding dbus started via systemd --user

Lennart Poettering <[email protected]>
Newsgroups gmane.comp.sysutils.systemd.devel,gmane.comp.freedesktop.dbus
Message-ID <20150202231713.GA13577@gardel-login>
On Fri, 09.01.15 10:26, Colin Guthrie ([email protected]) wrote:

> Colin Guthrie wrote on 08/01/15 11:55:
> > I "solved" this by adding a user unit for gnome-termnial-server and
> > making dbus use systemd activation for it, but that just moves it to a
> > different cgroup. I guess it's OK like this.
> 
> Just as a minor curiosity related to this bit...
> 
> I discovered today that handing this particular process over to as
> systemd --user unit is a bit broken!
> 
> It seems that gnome-terminal-server will exit when the last
> gnome-terminal dies. If you have started any programs in the background
> in the terminal (xeyes&, or even screen) and then close all your
> gnome-terminal processes, the main process of the cgroup becomes empty
> and then all the child processes are (correctly) reaped by systemd --user
> 
> Fun!
> 
> The screen example is a tough one here tho' with gnome-terminal-server.
> Since I removed it's own systemd unit, it will now live in the dbus
> daemon's cgroup and depending when the daemon dies, it not survive a
> logout... will have to check that! Might be OK tho'.
> 
> Playing with systemd --user is fun :)

Ideally gnome-terminal would open a user scope unit for each of its
tabs. This would allow them to survive, even without patching
KillMode= for the g-t-s service...

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.