units: add graphical-session.target user unit (#3678)

System Internals / systemd - Martin Pitt [ubuntu.com] - 25 July 2016 15:01 UTC

This unit acts as a dynamic "alias" target for any concrete graphical user session like gnome-session.target; these should declare "BindsTo=graphical-session.target" so that both targets stop and start at the same time.

This allows services that run in a particular graphical user session (e. g. gnome-settings-daemon.service) to declare "PartOf=graphical-session.target" without having to know or get updated for all/new session types. This will ensure that stopping the graphical session will stop all services which are associated to it.

c92fcc4 units: add graphical-session.target user unit (#3678)
Makefile.am | 3 ++-
man/systemd.special.xml | 51 +++++++++++++++++++++++++++++++++++
units/user/graphical-session.target | 13 +++++++++
3 files changed, 66 insertions(+), 1 deletion(-)

Upstream: github.com


  • Share