Auto Completion Not Working on Upstart Job Names

Bug #1416652 reported by Sah Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upstart (Ubuntu)
New
Undecided
Unassigned

Bug Description

Yes, I did report a bug with a same title. And yes, I did close it. And no, I didn't figure out why it doesn't work by digging into .bashrc & .profile. So, here we are again. Sorry...

To Reproduce:
In Gnome Terminal:
$ sudo touch /etc/init/foobar.conf
$ sudo start foo<tab>

Expected:
foobar is auto-completed.

Actually:
Nothing happens.

Additional Information:
Upstart auto completion script uses 'initctl list' to do the trick, and running 'initctl list' as non-root only shows the session jobs.
$ initctl list | grep foo
$

However, it is not the case if running in a login shell.
$ ssh localhost initctl list | grep foo
foobar stop/waiting
$

I used 'dbus-monitor --system' to see if there is something unusual. Here is what I see when I run 'initctl list' in an SSH session, but not in a non-login session. But I actually know nothing about DBus, so I don't even know for sure whether this information is relevant or not.

signal sender=org.freedesktop.DBus -> dest=(null destination) serial=185 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string "org.freedesktop.systemd1"
   string ":1.162"
   string ""
signal sender=org.freedesktop.DBus -> dest=(null destination) serial=186 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameOwnerChanged
   string ":1.162"
   string ":1.162"
   string ""

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: upstart 1.13.2-0ubuntu2
ProcVersionSignature: Ubuntu 3.16.0-29.39-generic 3.16.7-ckt2
Uname: Linux 3.16.0-29-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sat Jan 31 19:31:21 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-01-27 (3 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
ProcKernelCmdline: BOOT_IMAGE=/vmlinuz-3.16.0-29-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: upstart
UpgradeStatus: No upgrade log present (probably fresh install)
UpstartBugCategory: System
UpstartRunningSessionVersion: upstart 1.13.2
UpstartRunningSystemVersion: init (upstart 1.13.2)

Revision history for this message
Sah Lee (leesah) wrote :
Revision history for this message
Sah Lee (leesah) wrote :

Alright. I'm closing this since we have switched to Systemd now.

Revision history for this message
Sah Lee (leesah) wrote :

Cannot select the Won't Fix option.

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.