Update mw.tpl

pull/267/head
midoks 3 years ago
parent 4848f9b8f6
commit 0082b1fb76
  1. 4
      scripts/init.d/mw.tpl

@ -52,7 +52,7 @@ mw_start_panel()
fi fi
echo -e "\033[32mdone\033[0m" echo -e "\033[32mdone\033[0m"
else else
echo "Starting mw-panel... mw(pid $(echo $isStart)) already running" echo "starting mw-panel... mw(pid $(echo $isStart)) already running"
fi fi
} }
@ -61,7 +61,7 @@ mw_start_task()
{ {
isStart=$(ps aux |grep 'task.py'|grep -v grep|awk '{print $2}') isStart=$(ps aux |grep 'task.py'|grep -v grep|awk '{print $2}')
if [ "$isStart" == '' ];then if [ "$isStart" == '' ];then
echo -e "Starting mw-tasks... \c" echo -e "starting mw-tasks... \c"
cd $mw_path && 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 sleep 0.3
isStart=$(ps aux |grep 'task.py'|grep -v grep|awk '{print $2}') isStart=$(ps aux |grep 'task.py'|grep -v grep|awk '{print $2}')

Loading…
Cancel
Save