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

在shell文件的第二行增加如下内容即可:

# chkconfig: 2345 10 90  
#服务必须在运行级2,3,4,5下被启动或关闭,启动的优先级是90,关闭的优先级是10。
# description: Start and Stop xxx

 

posted @ 2018-06-13 17:02  EasonJim  阅读(2985)  评论(0编辑  收藏  举报