![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
busybox
flyingcloud_2008
这个作者很懒,什么都没留下…
展开
-
Reboot与init 6的区别
<br />起因在于:重启服务器后有时候服务不会启动,而有时候又可以自动运行,唯一差别在于重启命令用的是reboot还是init 6.<br /><br />后查了相关资料,竟然大有玄机:<br /><br />对这两个操作使用man命令看到的内容如下:<br />init 6 Stop the operating system and reboot to the state defined by the initdefault entry in /etc/inittab.<br /><br />reboo转载 2010-09-15 18:20:00 · 28194 阅读 · 0 评论 -
BusyBox reboot 流程分析
BusyBox 版本1.10-2用户在console下输入reboot命令,busybox会调用到halt_mainint halt_main(int argc ATTRIBUTE_UNUSED, char **argv){...../* Perform action. */ if (ENABLE_INIT && !(flags & 4)) { if (ENABLE_FEATURE_INITRD) { pid_t *pidlist = find_pid_by_name("linuxrc"); if原创 2010-09-15 19:11:00 · 7943 阅读 · 0 评论