From 074eb65f6b8be2c0e37c3652c678e85e9f87f9ef Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 11 May 2021 16:05:38 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index bd8953ce1..7314514a6 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -51,7 +51,7 @@ mw_start(){ isStart=$(ps aux |grep 'task.py'|grep -v grep|awk '{print $2}') if [ "$isStart" == '' ];then echo -e "Starting mw-tasks... \c" - cd $mw_path && nohup python task.py >> $mw_path/logs/task.log 2>&1 & + cd $mw_path && nohup python3 task.py >> $mw_path/logs/task.log 2>&1 & sleep 0.3 isStart=$(ps aux |grep 'task.py'|grep -v grep|awk '{print $2}') if [ "$isStart" == '' ];then