update
This commit is contained in:
parent
da5b9351e2
commit
f41f616daf
|
|
@ -2,8 +2,7 @@
|
|||
<div class="bt-w-main">
|
||||
<div class="bt-w-menu">
|
||||
<p class="bgw" onclick="pluginService('csvn')">服务</p>
|
||||
<p onclick="redisConfig();">安装扩展</p>
|
||||
<p onclick="redisConfig();">配置修改</p>
|
||||
<p onclick="pluginInitD('csvn')">自启动</p>
|
||||
</div>
|
||||
<div class="bt-w-con pd15">
|
||||
<div class="soft-man-con"></div>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
# coding: utf-8
|
||||
|
||||
import time
|
||||
import psutil
|
||||
import random
|
||||
import os
|
||||
import urllib
|
||||
|
|
@ -14,6 +13,24 @@ sys.path.append(os.getcwd() + "/class/core")
|
|||
import public
|
||||
|
||||
|
||||
def getPluginName():
|
||||
return 'csvn'
|
||||
|
||||
|
||||
def getPluginDir():
|
||||
return public.getPluginDir() + '/' + getPluginName()
|
||||
|
||||
|
||||
def getServerDir():
|
||||
return public.getServerDir() + '/' + getPluginName()
|
||||
|
||||
|
||||
def getInitDFile():
|
||||
if app_debug:
|
||||
return '/tmp/' + getPluginName()
|
||||
return '/etc/init.d/' + getPluginName()
|
||||
|
||||
|
||||
def status():
|
||||
return 'start'
|
||||
|
||||
|
|
@ -21,3 +38,5 @@ if __name__ == "__main__":
|
|||
func = sys.argv[1]
|
||||
if func == 'status':
|
||||
print status()
|
||||
else:
|
||||
print 'error'
|
||||
|
|
|
|||
Loading…
Reference in New Issue