LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 601|回复: 2

系统关机的运行级求解

[复制链接]
发表于 2004-9-12 11:00:32 | 显示全部楼层 |阅读模式
debian:~# poweroff

Broadcast message from root (tty1) Sun Sep 12 14:22:19 2004...

大家看到了,系统关机是0级。那么它执行rc.d,是只执行rc0.d中的呢,还是从当前运行级(比如3)从rc3.d开始,依次降序到rc0.d?
The system is going down for system halt NOW !!
INIT: Switching to runlevel: 0
INIT: Sending processes the TERM signal
INIT: Sending processes the KILL signal
Stopping periodic command scheduler: cron.
Stopping internet superserver: inetd.
Saving the System Clock time to the Hardware Clock...
Hardware Clock updated to Sun Sep 12 14:22:47 CEST 2004.
Saving state of known serial devices... backing up serial.conf done.
Stopping deferred execution scheduler: atd.
Stopping system log daemon: klogd syslogd.
Stopping portmap daemon: portmap.
Sending all processes the TERM signal... done.
Sending all processes the KILL signal... done.
Saving random seed... done.
Unmounting remote filesystems... done.
Deconfiguring network interfaces: done.
Deactivating swap... done.
Unmounting local filesystems... done.
Power down.
发表于 2004-9-12 11:19:48 | 显示全部楼层
当向系统发出关机命令的时候,系统会执行相应的脚本,即/etc/rc0.d目录下的脚本.
 楼主| 发表于 2004-9-12 13:58:14 | 显示全部楼层
3x!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表