openresty 自启动

This commit is contained in:
Mr Chen
2019-03-15 14:52:18 +08:00
parent ad2e33fcd2
commit 1bdfb0625a
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -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
+1
View File
@@ -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'
+1 -1
View File
@@ -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