From 3d1e8983d063c304bf48658efaad77db7e373d5e Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Apr 2022 14:11:26 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index a0e0dd63c..348ae6a86 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -24,15 +24,6 @@ else echo "" fi -# Source function library. -if [ -f /etc/init.d/functions ];then - . /etc/init.d/functions -fi - -if [ -f /etc/rc.d/init.d/functions ];then - . /etc/rc.d/init.d/functions -fi - export LC_ALL="en_US.UTF-8" @@ -70,7 +61,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 && daemon "python3 task.py >> ${mw_path}/logs/task.log 2>&1 &" + cd $mw_path && 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