On 30/03/12 18:37, David Jeske wrote:
> I didn't see any replies to my comments about the ui/output of "initctl 
> list"... after some
> experimentation in the code, you can see what I came up with below.
If you sent individual mails to the list on different topics, it's much easier 
to follow those
discrete discussions.

> 1) I don't have any examples of multi-process services, so I edited the 
> output to add a "fake"
> second process for rsyslog so you can see what it would look like.
> 
> 2) the "xx:xx" is intended to be the length the process has been running. I'm 
> working on filling in
> the real numbers now..
> 
> 3) I'm thinking of adding a command/flag for a "machine readable" version of 
> "list"... (the current
> list isn't very machine readable, but this format is less so)
> 
> 4) I'm thinking about sorting this output, probably by prop-name.... 
> 
> Thoughts?
I'm not convinced this requires a change to Upstart as it should be easy to 
write a shell script
that produces output in whatever format you choose combining the output of 
initctl and ps. There may
be timing issues there where a process ends between the initctl and the ps, but 
the same is true of
putting the functionality into Upstart.

Also note that we cannot change the default 'initctl list' output as it would 
break any number of
tools. For a more verbose explanation of initctl output that the man page, see:

    http://upstart.ubuntu.com/cookbook/#initctl-status

Note that there is a plan to produce a chkconfig-like tool for Upstart that is 
partly developed
currently. That would show some of the information I think you are after.

Also, have you seen this?:

    http://upstart.ubuntu.com/cookbook/#controlling-upstart-using-d-bus

Specifically,

    http://upstart.ubuntu.com/cookbook/#list-all-jobs-via-d-bus

You could write a program/script in almost any language that uses D-Bus to 
produce output as you desire.

Kind regards,

James
--
James Hunt
____________________________________
http://upstart.ubuntu.com/cookbook
http://upstart.ubuntu.com/cookbook/upstart_cookbook.pdf

-- 
upstart-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Reply via email to