运行chkconfig命令报错的解决方法

回复 收藏
运行 chkconfig 命令报错

系统:SUSE 11  

报错内容:
# chkconfig --level 3 rss_bt on
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: Service nginx has to be enabled to start service rss_bt
insserv: exiting now!
/sbin/insserv failed, exit code 1

解决办法:

#vim  /etc/init.d/jexec

在 # Required-Start: $local_fs下面一行添加 #Required-Stop:之后,保存退出。

# chkconfig --level 3 rss_bt on
insserv: Service nginx has to be enabled to start service rss_bt
insserv: exiting now!
/sbin/insserv failed, exit code 1

# chkconfig  --list |grep  rss_bt         
rss_bt                    0:off  1:off  2:off  3:off  4:off  5:off  6:off

再次运行chkconfig命令,报了一个新错误。

错误原因:因为 chkconfig 时没有在/etc/rc.d/rc3.d/ 目录下创建相关的文件软连接。

解决方法:

解决:手动创建软连接。
ln -s /etc/rc.d/rss_bt /etc/rc.d/rc3.d/S13rss_bt

再次使用chkconfig命令,成功。
# chkconfig --level 3 rss_bt on
# chkconfig --list |grep rss_bt
rss_bt                    0:off  1:off  2:off  3:on   4:off  5:on   6:off




2015-12-24 11:03 举报
已邀请:
0

297168738

赞同来自:

大哥你这系统我都没玩过有镜像吗,发个啊,是你们公司在用吗
0

sunwang33

赞同来自:

297168738 发表于 2015-12-24 12:43
大哥你这系统我都没玩过有镜像吗,发个啊,是你们公司在用吗

明哥讲过这个系统,德国人研发的,主要研发或机关在用,个人感觉不如centOS。
0

malong

赞同来自:

学习了
0

迷城

赞同来自:

学习了。个人用suse也有很多

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: