mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
up
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
<p class="bgw" onclick="pluginService('swap');">服务</p>
|
||||
<p onclick="pluginInitD('swap');">自启动</p>
|
||||
<p onclick="pluginConfig('swap');">配置修改</p>
|
||||
<p onclick="pluginLogs('swap','','run_log');">日志</p>
|
||||
</div>
|
||||
<div class="bt-w-con pd15">
|
||||
<div class="soft-man-con"></div>
|
||||
|
||||
@@ -59,10 +59,8 @@ def getArgs():
|
||||
|
||||
|
||||
def status():
|
||||
data = mw.execShell(
|
||||
"ps -ef|grep swap |grep -v grep | grep -v python | grep -v mdserver-web | awk '{print $2}'")
|
||||
|
||||
if data[0] == '':
|
||||
data = mw.execShell("free -m|grep Swap|awk '{print $2}'")
|
||||
if data[0] == '0':
|
||||
return 'stop'
|
||||
return 'start'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user