Upstart bash completion does not work on ubuntu server
Bug #809043 reported by
Davor Cubranic
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
Natty server does not install the dbus daemon, but upstart's bash completion script (/etc/bash_
$ sudo restart <tab>
will output the following error message:
initctl: Unable to connect to system bus: Failed to connect to socket /var/run/
Changed in upstart (Ubuntu): | |
status: | New → Confirmed |
Changed in upstart (Ubuntu): | |
importance: | Undecided → Medium |
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better. However, this issue is caused by the fact that a default natty server does not install the "dbus" package and hence non-root users are unable to communicate with Upstart using initctl (specifically the "list" and "status" commands will not work).
So, to resolve your issue, there are 2 main choices:
- Use a full root shell such that tab completion will work.
("su -" or "sudo su -" and then initctl tab completion will work.
- install the dbus package ("sudo apt-get install dbus").
Non-root users will then be able to invoke initctl.
Clearly, you need to be aware of the implications of adopting either of these choices.