Is there a list of available events that can be used for Upstart?
For example start on local-filesystems
so local-filesystems is an event but when is it triggered and what other events are there?
eventsupstart
Is there a list of available events that can be used for Upstart?
For example start on local-filesystems
so local-filesystems is an event but when is it triggered and what other events are there?
Best Answer
Manpages
Starting in Ubuntu 11.04, there is an awesome man page created by James Hunt called
usptart-events
so from the terminal run:It is also available from the Ubuntu online manpages, upstart-events, but loses some formatting so a better online resource for the same information is from the Upstart cookbook.
Visualisation of Jobs and Events
There is also an excellent tool,
initctl2dot
for visualization of upstart events. Below are examples of using the command to generate images from Ubuntu 12.04.View all jobs:
View only plymouth, lightdm and mountall jobs:
Source
Grep init
You can also
grep
for emit in the following directories:That will give you most of them, the others are emitted by the dbus bridge.
For more information and best practices, see The Upstart Cookbook.