Document all events (was: cross-comment events and *.conf files)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: upstart
Finding where events are asserted and which *.conf files are sensitive to an asserted event is difficult.
As a documentation habit, it would be good to have comments in both the *.conf files and the scripts that make assertiongs and the man pages for commands that assert events.
For example, /etc/init/
I believe "filesystem" is asserted by mountall,
"strings /sbin/mountall" shows me strings for virtual-, local-, and remote-filesystems which I see in /etc/init/*.conf files.
I see the assertion for "net-device-up" in /etc/network/
These linkages would be easier to track and maintain if /etc/init/
/etc/network/
It might be useful to add an "assert" stanza to *.conf scripts so the absence of a support file, especially when it is unique, would be noted in an warning message or even cause an error.
Hi Mike,
Thanks for reporting this and be reassured that we are investigating this suggestion. Natty should ship with a few new man pages for upstart, including one currently entitled upstart-events. You can see a preview of it here:
http:// people. canonical. com/~jhunt/ upstart/ man/upstart- events. pdf
Caveat: this page is beta and displays poorly via PDF. If you want to view it properly:
wget http:// people. canonical. com/~jhunt/ upstart/ man/upstart- events. 7
tbl upstart-events.7 | nroff -man | less
The table summarizes all "well-known" events and should negate the need to embed references to man pages in .conf files.
Additionally the version of upstart shipping with natty should include basic "visualisation" of jobs such that upstart itself will be able to display the links between events and jobs.