mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update cli.sh
This commit is contained in:
@@ -21,12 +21,12 @@ mw_start_task()
|
|||||||
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}')
|
||||||
if [ "$isStart" == '' ];then
|
if [ "$isStart" == '' ];then
|
||||||
echo -e "\033[31mfailed\033[0m"
|
echo -e "\033[31mfailed\033[0m"
|
||||||
echo '------------------------------------------------------'
|
echo '------------------------------------------------------'
|
||||||
tail -n 20 $DIR/logs/task.log
|
tail -n 20 $DIR/logs/task.log
|
||||||
echo '------------------------------------------------------'
|
echo '------------------------------------------------------'
|
||||||
echo -e "\033[31mError: mw-tasks service startup failed.\033[0m"
|
echo -e "\033[31mError: mw-tasks service startup failed.\033[0m"
|
||||||
return;
|
return;
|
||||||
fi
|
fi
|
||||||
echo -e "\033[32mdone\033[0m"
|
echo -e "\033[32mdone\033[0m"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user