Service init.d Raspberry中的Autostart脚本未启动

Service init.d Raspberry中的Autostart脚本未启动,service,raspberry-pi,autostart,init.d,Service,Raspberry Pi,Autostart,Init.d,我正在运行一个带有喘息的Raspberry Pi,我试图在启动后启动几个脚本,但由于某些原因,它们没有启动,并且syslog/messages文件中也没有信息/错误 其中一个脚本的头文件所有头文件都是类似的,如果我使用service xxx start命令启动/停止它,则运行良好 #!/bin/sh ### BEGIN INIT INFO # Provides: myservice # Required-Start: $remote_fs $syslog # Requi

我正在运行一个带有喘息的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,您可以尝试更改为该级别

默认开始:s2 3 4 5 然后运行您的更新您可能不需要更新,但它不会造成伤害


S仅用于引导,然后它将运行下一级脚本

运行更新rc.d时会产生以下结果:更新rc.d:使用基于依赖关系的启动顺序更新rc.d:警告:默认启动运行级别参数2 3 4 5与xxx默认启动值S 2 3 4 5 insserv不匹配:警告:脚本“xxxx”的当前启动运行级别2 3 4 5覆盖LSB默认值2 3 4 5。