openresty 自启动

pull/109/head
Mr Chen 6 years ago
parent e2317f50b5
commit cedff49db7
  1. 4
      class/core/config_api.py
  2. 1
      plugins/openresty/index.py
  3. 2
      plugins/openresty/init.d/nginx.tpl

@ -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

@ -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'

@ -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

Loading…
Cancel
Save