mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -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
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user