嵌入式操作系统 7 Ubuntu中的系统初始化 陈香兰(xlanchenc@ustc.edu.cn) 计算机应用教研室。计算机学院 嵌入式系统实验室●苏州研究院 中国科学技术大学 Fa112014 December 9,2014 1口401是42在刀00 陈香兰(xlanchenoustc,edu,cn)(升界款应 长人式操作系统 December 9.2014 1 /29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 嵌入式操作系统 7 Ubuntu中的系统初始化 陈香兰(xlanchen@ustc.edu.cn) 计算机应用教研室@计算机学院 嵌入式系统实验室@苏州研究院 中国科学技术大学 Fall 2014 December 9, 2014 陈香兰(xlanchen@ustc.edu.cn) (计算机应用教研室@计算机学院嵌入式系统实验室 嵌入式操作系统 @苏州研究院中国科学技术大学Fall 2014) December 9, 2014 1 / 29
Outline 概述 ② Upstart简介 ®小结 4口4四1是4P在刀0C 陈香兰(xlanchenoustc,edu,cn)(计界轧应 长人式样饰系统 December 9.2014 2 /29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline 1. 概述 .2 Upstart简介 .3 小结 陈香兰(xlanchen@ustc.edu.cn) (计算机应用教研室@计算机学院嵌入式系统实验室 嵌入式操作系统 @苏州研究院中国科学技术大学Fall 2014) December 9, 2014 2 / 29
Ubuntu的init系统历史变迁 ●Ubuntu是Debian的下游版本o 。Liux发行版在内核启动之后,都需要启动一个 init进程(1号进程)】 ①System-V init,又写作sysvinit Upstart http://upstart.ubuntu.com event-based init daemon ubuntu-6.l0开始逐步用upstart代替原来的System-V init Systemd https://wiki.ubuntu.com/systemd 根据目前了解的信息 0 ubuntu-15.04将正式开始 ©ubunut-14.10已经可以安装,待完善o 4口4四是4P在刀00 陈香兰(xlanchenoustc,ed加,cn)(升异数应 瓷人式操作委蛇 Dece0er9.20144/29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ubuntu的init系统历史变迁 Ubuntu是Debian的下游版本。 Linux发行版在内核启动之后,都需要启动一个 init进程(1号进程) 1. System-V init,又写作sysvinit 2. Upstart:http://upstart.ubuntu.com event-based init daemon ubuntu-6.10开始逐步用upstart代替原来的System-V init 3. Systemd:https://wiki.ubuntu.com/systemd 根据目前了解的信息 1. ubuntu-15.04将正式开始 2. ubunut-14.10已经可以安装,待完善。 陈香兰(xlanchen@ustc.edu.cn) (计算机应用教研室@计算机学院嵌入式系统实验室 嵌入式操作系统 @苏州研究院中国科学技术大学Fall 2014) December 9, 2014 4 / 29
Outline 桃递 ② Upstart简介 @小结 4口4四1是4P刀00 陈香兰(xlanchenoustc,edu,cn)(计界轧应 长人式样饰系统 December 9.2014 5 /29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline . 1. 概述 .2 Upstart简介 .3 小结 陈香兰(xlanchen@ustc.edu.cn) (计算机应用教研室@计算机学院嵌入式系统实验室 嵌入式操作系统 @苏州研究院中国科学技术大学Fall 2014) December 9, 2014 5 / 29
upstart ●Upstart is an event-based(基于事件的)replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and O supervising them while the system is running. o In essence,Upstart is an event engine:it O creates events, handles the consequences of those events being emitted and O starts and stops processes as required. 。关于Upstart的详细介绍, 参见http://upstart.ubuntu.com/cookbook/,或者 参见/usr/shard/,doc/upstart下的README(需要解压缩),或者 使用下列命令可以查看upstart和init相关信息 man init 或者 man upstart o Ubuntu-14.04 upstart-1.12.1 4口4四是4P在刀0C 东香兰(xlanchenoustc,edu.cn)(计年丸应 长人式控作系蛇 December 9.2014 6/29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . upstart Upstart is an event-based(基于事件的) replacement for the /sbin/init daemon which handles 1. starting of tasks and services during boot, 2. stopping them during shutdown and 3. supervising them while the system is running. In essence, Upstart is an event engine: it 1. creates events, 2. handles the consequences of those events being emitted and 3. starts and stops processes as required. 关于Upstart的详细介绍, 参见http://upstart.ubuntu.com/cookbook/,或者 参见/usr/shard/doc/upstart下的README(需要解压缩),或者 使用下列命令可以查看upstart和init相关信息 man init 或者 man upstart Ubuntu-14.04:upstart-1.12.1 陈香兰(xlanchen@ustc.edu.cn) (计算机应用教研室@计算机学院嵌入式系统实验室 嵌入式操作系统 @苏州研究院中国科学技术大学Fall 2014) December 9, 2014 6 / 29