gpt4 book ai didi

linux - 插入 : missing `Required-Stop:' entry: please add even if empty

转载 作者:IT王子 更新时间:2023-10-29 00:52:14 24 4
gpt4 key购买 nike

在/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

尽管执行命令时省略了以下错误消息 **/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 - 插入 : missing `Required-Stop:' entry: please add even if empty,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28608637/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com