insserv: warning: script 'xxxx' missing LSB tags and overrides

更换系统后(Linux localhost 4.4.0-96-generic #119-Ubuntu SMP Tue Sep 12 14:59:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux)依照之前系统的配置来配置启动项,遇到了上面的问题。 虽然只是一个警告,但是经常出现,心里觉得不爽。

最后发现之前的脚本中未配置 Run-time dependencies, 参考/etc/init.d/下面的其他脚本,发现都有下面的内容,可以参考How to LSBize an Init Script

### 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

在自己的脚本中添加上面的内容,Provides 的脚本名做对应修改即可。如需更详细的设置,参考上面的链接。

Refer:
insserv: warning: script ‘uwsgi’ missing LSB tags and overrides

insserv: warning: script ‘mathkernel’ missing LSB tags and overrides

  • 3
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值