mysql 自启动done

pull/109/head
Mr Chen 6 years ago
parent 22bc48141d
commit 61cd0cdfb1
  1. 3
      class/core/config_api.py
  2. 2
      plugins/mysql/index.py
  3. 3
      plugins/mysql/info.json
  4. 4
      plugins/mysql/init.d/mysql.tpl

@ -17,7 +17,8 @@ class config_api:
# 本版解决自启动问题
# openresty 自启动 done
# php 自动 done
# php 自启动 done
# mysql 自启动 done
__version = '0.5.2'
def __init__(self):

@ -293,6 +293,7 @@ def initdInstall():
initd_bin = getInitDFile()
shutil.copyfile(mysql_bin, initd_bin)
public.execShell('chmod +x ' + initd_bin)
public.execShell('chkconfig --add ' + getPluginName())
return 'ok'
@ -300,6 +301,7 @@ 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'

@ -4,7 +4,8 @@
"name":"mysql",
"type":"运行环境",
"ps":"MySQL是一种关系数据库管理系统!",
"versions":["5.5","5.6","5.7","8.0"],
"todo_versions":["5.6","5.7","8.0"],
"versions":["5.5"],
"updates":["5.5.62"],
"shell":"install.sh",
"checks":"server/mysql",

@ -1,4 +1,8 @@
#!/bin/sh
# chkconfig: 2345 55 25
# Description: mysql service
# distro. For CentOS/Redhat run: 'chkconfig --add mysql'
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind

Loading…
Cancel
Save