insserv: Script <name> is broken: incomplete LSB comment.

insserv: missing `Required-Start:' entry: please add even if empty.
insserv: missing `Required-Stop:' entry: please add even if empty.
insserv: missing `Default-Start:' entry: please add even if empty.
insserv: missing `Default-Stop:' entry: please add even if empty.

 。。。。。。

 

必定是/etc/init.d/目录下有<name>脚本缺少如下格式

### BEGIN INIT INFO
# Provides:          scriptname
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO
scriptname 改为脚本名
具体格式可参照/etc/init.d/下其他脚本

相关文章:

  • 2021-10-24
  • 2021-11-18
  • 2022-02-24
  • 2022-12-23
  • 2021-12-06
  • 2022-02-21
  • 2022-12-23
  • 2022-02-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2021-10-24
  • 2022-12-23
  • 2021-06-30
相关资源
相似解决方案