pull/632/head
Mr Chen 6 months ago
parent 7c696c24f3
commit 0c6fb48989
  1. 2
      scripts/init.d/mw.tpl
  2. 2
      web/core/mw.py

@ -104,7 +104,7 @@ mw_start()
# /www/server/mdserver-web/tmp/panelTask.pl && service mw restart_task # /www/server/mdserver-web/tmp/panelTask.pl && service mw restart_task
mw_stop_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" echo -e "\033[32mthe task is running and cannot be stopped\033[0m"
exit 0 exit 0
fi fi

@ -665,7 +665,7 @@ def isRestart():
return True return True
def triggerTask(): def triggerTask():
isTask = getPanelDir() + '/tmp/panelTask.pl' isTask = getPanelDir() + '/logs/panel_task.lock'
writeFile(isTask, 'True') writeFile(isTask, 'True')
def restartTask(): def restartTask():

Loading…
Cancel
Save