This commit is contained in:
Mr Chen
2024-11-03 18:57:50 +08:00
parent 7c696c24f3
commit 0c6fb48989
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ mw_start()
# /www/server/mdserver-web/tmp/panelTask.pl && service mw restart_task
mw_stop_task()
{
if [ -f ${PANEL_DIR}/tmp/panelTask.pl ];then
if [ -f ${PANEL_DIR}/logs/panel_task.lock ];then
echo -e "\033[32mthe task is running and cannot be stopped\033[0m"
exit 0
fi
+1 -1
View File
@@ -665,7 +665,7 @@ def isRestart():
return True
def triggerTask():
isTask = getPanelDir() + '/tmp/panelTask.pl'
isTask = getPanelDir() + '/logs/panel_task.lock'
writeFile(isTask, 'True')
def restartTask():