rc.local中命令没执行?

图片描述

单独执行rc.local文件正常、单独执行命令正常、root下hub文件记录正常,就是开机自动执行不正常,求解!!!

阅读 3.7k
3 个回答

我只想说,那段被你忽视的注释部分已经解答了你的疑惑

Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
that this script will be executed during boot.

exec 2> /tmp/rc.local.log  # send stderr from rc.local to a log file
exec 1>&2                      # send stdout to the same log file

如果运行了,会有相应的文件生产
https://stackoverflow.com/que...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题