centos7 开机自启

https://www.cnblogs.com/longchengruoxi/p/11451062.html

chkconfig启动脚本规范 在脚本开头加入下面内容

注意:不添加内容的话添加启动项时会提示service myservice does not support chkconfig

#!/bin/sh
#chkconfig:2345 80 90
#decription:autostart

原文地址:https://www.cnblogs.com/jinwenb/p/12697334.html