linux - Init.d 脚本导致启动挂起

标签 linux debian init raspberry-pi init.d

我成功安装了一个脚本,以便在我的新 Raspberry Pi 上的/etc/init.d 中自动启动。

不幸的是,它是一个永远不会返回的node.js应用程序,因此在启动期间挂起设备(这是在Debian上)。是的,我是个白痴。

我可以在启动期间进行 secret 握手以防止它运行我的 init.d 脚本,以便我可以登录并使用 shell 来修复它吗?

最佳答案

我为解决这个问题所做的就是这个,我警告你,它涉及 Windows。

我在我的电脑上安装了闪存卡并编辑了“cmdline”并将“ro 1”添加到了内核配置的末尾。这仅允许启动通过运行级别 1 进行,然后在出现提示后将您带入 root shell。

注意:Windows 8 可以读取未修改的内核配置文件 - 无需特殊驱动程序。

关于linux - Init.d 脚本导致启动挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15036726/

相关文章:

linux - 为什么外部 NIC 无法在我的服务器上运行(在 Debian 7 上运行)?

linux - 如何删除另一个文件中指定的所有行

linux - 使用 Web 应用程序远程重新安排 cron 作业

debian - 如何在 Debian 上的 VSCode 中正确设置 Rust 环境?

sql-server - 问题 : Writing more data than expected in debian packages

linux - Init.d 脚本不启动或停止只打印帮助信息

linux - 为什么 Ubuntu 18.04 使用 `/sbin/init` 而不是 `systemd` ?

linux - 在 Ubuntu 上重生挂起进程的最佳语言/方法?

linux -/etc/init.d 脚本 'detach' 来自输出

android - 致命的 : [Errno 13] Permission denied when repo init android source 4. 1