redis 自启动 done

This commit is contained in:
Mr Chen
2019-03-15 16:47:55 +08:00
parent ac50b335c3
commit 6a8db02aa7
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -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'