touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #51501
[Bug 1416652] [NEW] Auto Completion Not Working on Upstart Job Names
Public bug reported:
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)
** Affects: upstart (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug utopic
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1416652
Title:
Auto Completion Not Working on Upstart Job Names
Status in upstart package in Ubuntu:
New
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1416652/+subscriptions
Follow ups
References