小编Cho*_*One的帖子

为什么不执行 rc.local?

我正在 PXE 引导集群中的一些 Ubuntu 机器。突然间,我的rc.local脚本停止了工作。

我已经检查了以下权限/etc/rc.local

-rwxr-xr-x 1 root root 1087 Jan 14 11:04 /etc/rc.local
Run Code Online (Sandbox Code Playgroud)

我检查rc.local了以下文件夹中的符号链接:

/etc/rc2.d 
/etc/rc3.d
/etc/rc4.d 
/etc/rc5.d
Run Code Online (Sandbox Code Playgroud)

它们都符号链接到/etc/init.d/rc.local.

我试图将脚本中的回声行输出到/tmp/test.out但没有运气。当我rc.local在机器启动后执行脚本时,它工作正常。

什么会导致rc.local无法运行?

boot scripts upstart

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

boot ×1

scripts ×1

upstart ×1