init-checkconf fails when X not running or DISPLAY not set
Bug #881885 reported by
James Hunt
This bug affects 13 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Fix Released
|
Undecided
|
James Hunt |
Bug Description
init-checkconf(8) fails if the user is logged in on a console only (no X session) due to the recent D-Bus behavioural change outlined in bug 812940. Error is:
ERROR: failed to ask Upstart to check conf file
The solution is for init-checkconf to:
1) Check to see if a dbus-daemon exists for the user invoking the script.
2) If not, have it run: eval `dbus-launch --auto-syntax` and ensure the daemon starts.
Note that the script should also kill the dbus-daemon but *ONLY* if it was not running when the script first started.
Changed in upstart: | |
assignee: | nobody → James Hunt (jamesodhunt) |
description: | updated |
description: | updated |
Changed in upstart: | |
status: | New → In Progress |
Changed in upstart: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Workaround:
sudo apt-get install dbus-x11
eval `dbus-launch --auto-syntax`