Spa*_*apS 32
Starting in Ubuntu 11.04, there is an awesome man page created by James Hunt called usptart-events so from the terminal run:
man upstart-events
Run Code Online (Sandbox Code Playgroud)
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.
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
Run Code Online (Sandbox Code Playgroud)
View only plymouth, lightdm and mountall jobs:
initctl2dot -r plymouth,lightdm,mountall -o - | dot -Tpng -o upstart2.png
Run Code Online (Sandbox Code Playgroud)
You can also grep for emit in the following directories:
grep -r emit /etc/init /etc/init.d /etc/network/if*.d
Run Code Online (Sandbox Code Playgroud)
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.
upstart这些事件由其本身或由其发出,mountall并且所有事件都有其man页面:
挂载 挂载的虚拟文件系统 本地文件系统 所有交换文件系统 远程文件系统 开始 开始 停止 停止 启动 运行级别(7)
任何应用程序都可以发出自己的事件,例如通过
initctl emit suspend
Run Code Online (Sandbox Code Playgroud)
其中一些您可以将其视为输出
grep emit /etc/init/*
Run Code Online (Sandbox Code Playgroud)
更多信息还可访问:
http://netsplit.com/2008/04/27/upstart-05-events/
| 归档时间: |
|
| 查看次数: |
15428 次 |
| 最近记录: |