Is there a list of available events that can be used for Upstart?
start on local-filesystems so local-filesystems is an event but when is it triggered and what other events are there?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Starting in Ubuntu 11.04, there is an awesome man page created by James Hunt called
usptart-events so from the terminal run:
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:
initctl2dot -o - | dot -Tpng -o upstart.png
View only plymouth, lightdm and mountall jobs:
initctl2dot -r plymouth,lightdm,mountall -o - | dot -Tpng -o upstart2.png
You can also
grep for emit in the following directories:
grep -r emit /etc/init /etc/init.d /etc/network/if*.d
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.
These events are emited by either
upstart itself or by
mountall and all of them have their
mounting mounted virtual-filesystems local-filesystems all-swaps filesystem remote-filesystems started starting stopping stopped startup runlevel(7)
Any application can emit its own event, for example by
initctl emit suspend
Some of them you can see as the output of
grep emit /etc/init/*
More information also at: