linux path 坏了,Linux下安装UltraPath多路径报jexec被破坏

问题描述

在安装java的linux系统中,安装多路径时,或者使用chkconfig添加或删除系统服务时。提示insserv: Script jexec is broken

告警信息

linux-n8tv:/home/syf

# chkconfig -a ultrapath

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.

ultrapath                0:off 1:off 2:off 3:on  4:off 5:on  6:off

处理过程

1

insserv程序的作用是什么?

答:insserv是用来管理linux服务的,它决定了哪些服务需要在什么时候开启或者停止以及这些服务的启动停止顺序。

2

java的错误,怎么和UltraPath扯上联系了?

答:insserv的所有配置信息都放置在/etc/init.d目录下,每次运行chkconfig来启动或停止服务时,insserv就会将/etc/init.d目录下的所有配置信息都搜索一遍。所以,只要/etc/init.d中存在一个配置不正确的脚本,就会报错。

解决方案

将/etc/init.d/jexec中的如下内容中,添加# Required-Stop:

###

BEGIN INIT INFO

# Provides:

binfmt_misc

#

Required-Start: $local_fs

#

Default-Start: 1 2 3 4 5

#

Default-Start: 0 6

#

chkconfig: 12345 95 05

#

Description: Supports the direct execution of binary formats.

###

END INIT INFO

添加后的效果:

###

BEGIN INIT INFO

#

Provides: binfmt_misc

#

Required-Start: $local_fs

#

Default-Start: 1 2 3 4 5

#

Required-Stop:

#

Default-Start: 0 6

#

chkconfig: 12345 95 05

#

Description: Supports the direct execution of binary formats.

###

END INIT INFO

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值