我正在用Wheezy运行一个Raspberry Pi,我试图在启动后启动几个脚本,但由于某些原因,它们没有启动,syslog/messages文件中也没有信息/错误。
其中一个脚本的头(如果我用"service xxx start"命令启动/停止它,所有头都是类似的,运行良好)
#!/bin/sh
### BEGIN INIT INFO
# Provides: myservice
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Put a short description of the service here
# Description: Put a long description of the service here
### END INIT INFO
当我运行update-rc.d命令时,这是它给出的唯一输出:
更新rc.d:使用基于依赖项的引导排序
查看/etc/rcX.d控制器,所有脚本都在那里,从S03xxx 开始
我不知道为什么系统没有自动启动它们。(还要检查运行级别,即2)
您可以尝试更改到此
默认启动:S 2 3 4 5
然后运行你的更新(你可能不需要更新,但不会有什么影响)。
S仅用于引导,然后它将运行下一级脚本。