pureftp 自启动 done
This commit is contained in:
parent
92ce0fc62c
commit
a46afc279c
|
|
@ -21,6 +21,7 @@ class config_api:
|
|||
# mysql 自启动 done
|
||||
# memcached 自启动 done
|
||||
# redis 自启动 done
|
||||
# pureftp 自启动 done
|
||||
__version = '0.5.2'
|
||||
|
||||
def __init__(self):
|
||||
|
|
|
|||
|
|
@ -166,6 +166,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'
|
||||
|
||||
|
||||
|
|
@ -176,6 +177,7 @@ def initdUinstall():
|
|||
return "Apple Computer does not support"
|
||||
initd_bin = getInitDFile()
|
||||
os.remove(initd_bin)
|
||||
public.execShell('chkconfig --del ' + getPluginName())
|
||||
return 'ok'
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue