Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我关闭设备电源时,理想情况下内核应该得到这个事件,然后运行级别 0 应该被执行。
到目前为止,硬件已关闭,但未执行运行级别 0。
当我手动执行脚本时
/etc/rc.d/rc
并将运行级别值硬编码为 0 脚本工作正常并且系统停止。
停止,重启的所有服务都存在于 /etc/init.d 目录中
您的运行级别特定服务存在于 /etc/rc.d/ 目录中
rc.d 目录约定很旧
实际上运行级别的更改是由内核模块完成的,在我的情况下,问题是负责发出此重置的二进制文件未打包,因为它在我们的包映射列表中丢失