diff --git a/class/core/config_api.py b/class/core/config_api.py index a22e8874c..a418db113 100755 --- a/class/core/config_api.py +++ b/class/core/config_api.py @@ -15,7 +15,9 @@ from flask import request class config_api: - __version = '0.4.2' + # 本版解决自启动问题 + # openresty 自启动 done + __version = '0.5.0' def __init__(self): pass diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index ed737584c..09557c79d 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -232,6 +232,7 @@ def initdInstall(): initd_bin = getInitDFile() shutil.copyfile(source_bin, initd_bin) public.execShell('chmod +x ' + initd_bin) + public.execShell('chkconfig --add ' + getPluginName()) return 'ok' diff --git a/plugins/openresty/init.d/nginx.tpl b/plugins/openresty/init.d/nginx.tpl index f025e8670..ebc8555a9 100644 --- a/plugins/openresty/init.d/nginx.tpl +++ b/plugins/openresty/init.d/nginx.tpl @@ -2,7 +2,7 @@ # chkconfig: 2345 55 25 # Description: Startup script for nginx webserver on Debian. Place in /etc/init.d and # run 'update-rc.d -f nginx defaults', or use the appropriate command on your -# distro. For CentOS/Redhat run: 'chkconfig --add nginx' +# distro. For CentOS/Redhat run: 'chkconfig --add openresty' ### BEGIN INIT INFO # Provides: nginx