不能添加linux条目,在Linux中insserv:缺少`必需 – 停止:’条目:请添加即使是空的...

在/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复制的第一组.我手动输入 – 并且它有效.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值