Add xdiagnose fallback when display-manager fails to start
Bug #1400682 reported by
Didier Roche-Tolomelli
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdiagnose (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Attached patch
tags: | added: patch |
Changed in xdiagnose (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
+ xdiagnose (>= 3.7),
I don't want systemd to pull in xdiagnose. This will lead to pretty much a disaster on servers :-) This should be left to seeds.
+-Requires= multi-user. target multi-user. target display- manager. service user.target rescue. target manager. service
++Requires=
+ After=multi-
+ Conflicts=
+ Wants=display-
This now seems redundant (Wants+Requires). I think I'm okay with this, as having a graphical target without any DM seems a bit of a corner case. I suppose this is necessary as otherwise OnFailure= wouldn't be called for graphical.target if display- manager. service fails?
I wonder if we could make use of the new ".d/" support in 218 for this. I. e. could the xdiagnose package just ship a /lib/systemd/ system/ display- manager. service. d/xdiagnose. conf which adds the Requires= and OnFailure=? Then we wouldn't need to teach systemd about this at all, and xdiagnose would be self-contained.