redis 自启动 done

pull/109/head
Mr Chen 6 years ago
parent 0a85208fce
commit 92ce0fc62c
  1. 1
      class/core/config_api.py
  2. 2
      class/core/plugins_api.py
  3. 3
      plugins/redis/index.py

@ -20,6 +20,7 @@ class config_api:
# php 自启动 done
# mysql 自启动 done
# memcached 自启动 done
# redis 自启动 done
__version = '0.5.2'
def __init__(self):

@ -98,7 +98,7 @@ class plugins_api:
return public.returnJson(False, '缺少版本信息!', ())
infoJsonPos = self.__plugin_dir + '/' + name + '/' + 'info.json'
print infoJsonPos
# print infoJsonPos
if not os.path.exists(infoJsonPos):
return public.retJson(False, '配置文件不存在!', ())

@ -172,6 +172,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'
@ -179,6 +180,8 @@ def initdUinstall():
if not app_debug:
if public.isAppleSystem():
return "Apple Computer does not support"
public.execShell('chkconfig --del ' + getPluginName())
initd_bin = getInitDFile()
os.remove(initd_bin)
return 'ok'

Loading…
Cancel
Save