init-checkconf fails when X not running or DISPLAY not set

Bug #881885 reported by James Hunt
62
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.

James Hunt (jamesodhunt)
Changed in upstart:
assignee: nobody → James Hunt (jamesodhunt)
description: updated
description: updated
Revision history for this message
Russell Mull (e-russel3-b) wrote :

Workaround:

sudo apt-get install dbus-x11
eval `dbus-launch --auto-syntax`

James Hunt (jamesodhunt)
Changed in upstart:
status: New → In Progress
Revision history for this message
mcandre (andrew-pennebaker) wrote :

When will this bug be fixed???

Changed in upstart:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.