CentOS使用chkconfig增加开机服务提示service xxx does not support chkconfig的问题解决

CentOS使用chkconfig增加开机服务提示service xxx does not support chkconfig的问题解决

在service服务管理目录下的shell脚本的第二行增加如下内容即可:指定运行级别

chkconfig: 2345 10 90

服务必须在运行级2,3,4,5下被启动或关闭,启动的优先级是90,关闭的优先级是10。

description: Start and Stop xxx

posted @ 2020-04-12 00:24  A学无止境A  阅读(588)  评论(0编辑  收藏  举报