linux – insserv:缺少`必需 – 停止:’条目:请添加即使是空的

linux – insserv:缺少`必需 – 停止:’条目:请添加即使是空的,第1张

概述在/etc/init.d/myservice脚本中,我有以下几行 ### BEGIN INIT INFO# Provides: myserviced# Required-Start: $syslog# Required-Stop: $syslog# Should-Start:# Should-Stop:# Default-Start:# Default-Stop:# Short-D 在/etc/init.d/myservice脚本中,我有以下几行

### BEGIN INIT INFO# ProvIDes: myserviced# required-Start: $syslog# required-Stop: $syslog# Should-Start:# Should-Stop:# Default-Start:# Default-Stop:# Short-Description:# Description: Bring up/down service### END INIT INFO

尽管如此,在执行comman ** / sbin / chkconfig时会省略以下错误消息–add myserviced

insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.insserv: script jexec is broken: incomplete LSB comment.insserv: missing `required-Stop:'  entry: please add even if empty.myserviced          0:off  1:off  2:off  3:on   4:off  5:on   6:off

我读过Incomplete LSB comment. insserv: missing valid name for `Provides:’ please add的帖子.但没有帮助.

此错误在SUSE 11上发生,但在Rehat-6上不发生

解决方法 确保您的破折号符合预期.在我正在做的一些复制粘贴中,解释器没有看到预期的字符.
从字面上看,这个

# required­Start:    $remote_fs $syslog $time # required­Stop:     $remote_fs $syslog $time # Should­Start:      $network $named slapd autofs ypbind nscd nslcd # Should­Stop:       $network $named slapd autofs ypbind nscd nslcd

成了这个:

# required-­Start:    $remote_fs $syslog $time # required­-Stop:     $remote_fs $syslog $time # Should­-Start:      $network $named slapd autofs ypbind nscd nslcd # Should-­Stop:       $network $named slapd autofs ypbind nscd nslcd

我从包含一个看似不可打印的字符的pdf复制的第一组.我手动输入 – 并且它有效.

总结

以上是内存溢出为你收集整理的linux – insserv:缺少`必需 – 停止:’条目:请添加即使是空的全部内容,希望文章能够帮你解决linux – insserv:缺少`必需 – 停止:’条目:请添加即使是空的所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1028100.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存