Bug 92115 - Mission Control: add systemd service
Summary: Mission Control: add systemd service
Status: RESOLVED MOVED
Alias: None
Product: Telepathy
Classification: Unclassified
Component: mission-control (show other bugs)
Version: git master
Hardware: Other All
: medium enhancement
Assignee: Telepathy bugs list
QA Contact: Telepathy bugs list
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-09-25 13:25 UTC by Simon McVittie
Modified: 2019-12-03 20:14 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Add a systemd user service corresponding to the D-Bus session service (3.26 KB, patch)
2015-09-25 13:26 UTC, Simon McVittie
Details | Splinter Review
[Gabble] Add a systemd user service (2.46 KB, patch)
2015-09-25 13:27 UTC, Simon McVittie
Details | Splinter Review
[TPL] Add a systemd user service (2.59 KB, patch)
2016-12-05 19:22 UTC, Laurent Bigonville
Details | Splinter Review

Description Simon McVittie 2015-09-25 13:25:13 UTC
Mission Control is D-Bus-activated. Under "systemd --user", this results in it being part of the dbus.service cgroup: it is part of dbus for the purposes of things like resource control.

With dbus-daemon 1.10 configured with --enable-user-session, we can do better: a systemd user service will result in it being placed in its own cgroup.

This also allows avoiding Bug #53220 without resorting to the mc-wait-for-name tool.
Comment 1 Simon McVittie 2015-09-25 13:26:07 UTC
Created attachment 118442 [details] [review]
Add a systemd user service corresponding to the D-Bus session service

This lets Mission Control run in its own cgroup.

As a bonus, systemd activation doesn't have to resort to hacks like
mc-wait-for-name, because systemd understands the concept of a
systemd service that maps to multiple D-Bus service names, and will
only start it once.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92115
Comment 2 Simon McVittie 2015-09-25 13:27:50 UTC
Created attachment 118443 [details] [review]
[Gabble] Add a systemd user service

This puts telepathy-gabble in its own cgroup, instead of being a
child process of dbus-daemon in the dbus.service cgroup.

---

The equivalent for telepathy-gabble. I'm not going to go round all the other CMs doing the same, but another contributor could, if someone wants to.
Comment 3 Laurent Bigonville 2015-12-09 15:18:49 UTC
Are there any plans to merge this?

(and to add the systemd .service files for the other CM?)
Comment 4 Laurent Bigonville 2016-12-05 19:22:30 UTC
Created attachment 128348 [details] [review]
[TPL] Add a systemd user service
Comment 5 GitLab Migration User 2019-12-03 20:14:02 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-mission-control/issues/83.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.