Hello Jan, Jan Alexander Steffens [2016-07-06 11:57 +0000]: > Note that systemd makes a difference between "gnome-session.service became > inactive" and "gnome-session.service gets stopped". A service terminating > by itself is the former. > > Requires= and PartOf= will only propagate the latter. BindsTo= also stops > on the former (besides acting like Requires=). > > So, if gnome-session.target BindsTo=gnome-session.service, > gnome-session.target requires gnome-session.service and will be stopped > when the service exits. > > There's also StopWhenUnneeded=, which might useful on the targets.
Indeed. The version 3 approach now uses that, and this finally works as intended. Thanks for pointing out! Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org) _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel