Bash completion for upstart

Michael Biebl mbiebl at gmail.com
Thu May 3 11:51:26 BST 2007


2007/5/3, Michael Biebl <mbiebl at gmail.com>:
> 2007/5/3, Alex Smith <alex at alex-smith.me.uk>:
> > Michael Biebl wrote:
> > >
> > > I could make the start/stop completion more sophisticated, and only
> > > list the running jobs for stop and the stopped jobs for start. Do you
> > > think this would be a good feature?
> >
> > Yes, I think that would be good.
>
> Ok, updated script is attached. Though it is rather slow for stop/status.
> Somehow, "initctl list" can be quite slow from time to time.
>
> Any ideas how this could be improved are very welcome.

Funny enough, this third approach, which seems much more ineffecient,
is faster than using initctl. I guess initctl has some serious
performance issues. Not that it would matter that much ;-)

Cheers,
Michael


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upstart
Type: application/octet-stream
Size: 1526 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20070503/0c6d0d6c/attachment.obj 


More information about the upstart-devel mailing list