Before upstart it was easy to get proper autocomplete, e.g. I type sudo /etc/init.d/rsys<tab>
and what I want to do and there I go.
Now I need (?) to write sudo stop rsys<tab>
but it doesn't work; seems the bash doesn't know what services can be started/stopped at this point.
Is there an Ubuntu package or manual activation for that?
The
service
command has autocompletion, e.g.:becomes:
Apparently nobody took the time to write autocompletion support for upstart yet...
Update: There is bash-completion for upstart now (I'm not sure it will be included in Ubuntu 10.04 or 10.10, but should go into Ubuntu 11.04, and you can find a solution for older versions in the bug report too).