This commit is contained in:
Mr Chen
2023-12-30 03:21:13 +08:00
parent d1028bcc41
commit 37f6f2b6bc
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,8 +1,9 @@
<div class="bt-form">
<div class='plugin_version'></div>
<div class="bt-w-main">
<div class="bt-w-menu">
<p class="bgw" onclick="orPluginService('openresty');">服务</p>
<p onclick="pluginInitD('openresty');">自启动</p>
<p onclick="pluginInitD('openresty', $('.plugin_version').attr('version'));">自启动</p>
<p onclick="pluginConfig('openresty');">配置修改</p>
<p onclick="getOpStatus();">负载状态</p>
<p onclick="setOpCfg();">性能调整</p>
+2 -2
View File
@@ -320,7 +320,7 @@ def restyOp_restart():
return 'ERROR: 配置出错<br><a style="color:red;">' + check_data[1].replace("\n", '<br>') + '</a>'
if not mw.isAppleSystem():
threading.Timer(2, op_submit_systemctl_restart, args=()).start()
threading.Timer(2, op_submit_systemctl_restart).start()
return 'ok'
threading.Timer(2, op_submit_init_restart, args=(file,)).start()
@@ -339,7 +339,7 @@ def stop():
return r
def restart():
def restart(version=()):
return restyOp_restart()