LinuxSir.cn,穿越时空的Linuxsir!

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

为什么我的rc.local 不能自动执行呢?

[复制链接]
发表于 2005-3-13 01:59:20 | 显示全部楼层 |阅读模式
按道理说 放在etc 下的rc.conf 和 rc.local 应该可以执行阿
发表于 2005-3-13 10:02:19 | 显示全部楼层
?? rc.conf? Arch ?

如果是lfs的话,它好象不使用rc.local吧。
6.0的initscript是这样的。
回复 支持 反对

使用道具 举报

发表于 2005-3-14 14:58:03 | 显示全部楼层
老兄,记住你安装的是LFS

[php]
touch /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local
ln -sf /etc/rc.d/rc.local /etc/rc.d/rc1.d/S999rc.local &&
ln -sf /etc/rc.d/rc.local /etc/rc.d/rc2.d/S999rc.local &&
ln -sf /etc/rc.d/rc.local /etc/rc.d/rc3.d/S999rc.local &&
ln -sf /etc/rc.d/rc.local /etc/rc.d/rc4.d/S999rc.local &&
ln -sf /etc/rc.d/rc.local /etc/rc.d/rc5.d/S999rc.local &&
ln -sf /etc/rc.d/rc.local /etc/rc.d/rc6.d/S999rc.local
[/php]
回复 支持 反对

使用道具 举报

发表于 2005-3-14 17:41:58 | 显示全部楼层
楼上的正解!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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