mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update mw.tpl
This commit is contained in:
@@ -7,8 +7,8 @@ mw_start(){
|
|||||||
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`
|
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`
|
||||||
if [ "$isStart" == '' ];then
|
if [ "$isStart" == '' ];then
|
||||||
echo -e "Starting mw... \c"
|
echo -e "Starting mw... \c"
|
||||||
cd $mw_path && gunicorn -c setting.py app:app &
|
cd $mw_path && gunicorn -c setting.py app:app
|
||||||
sleep 0.3
|
sleep 0.6
|
||||||
port=$(cat ${mw_path}/data/port.pl)
|
port=$(cat ${mw_path}/data/port.pl)
|
||||||
isStart=$(lsof -i :$port|grep LISTEN)
|
isStart=$(lsof -i :$port|grep LISTEN)
|
||||||
if [ "$isStart" == '' ];then
|
if [ "$isStart" == '' ];then
|
||||||
@@ -100,7 +100,7 @@ mw_reload()
|
|||||||
do
|
do
|
||||||
kill -9 $p
|
kill -9 $p
|
||||||
done
|
done
|
||||||
cd $mw_path && gunicorn -c setting.py app:app &
|
cd $mw_path && gunicorn -c setting.py app:app
|
||||||
isStart=`ps aux|grep 'gunicorn -c setting.py app:app'|grep -v grep|awk '{print $2}'`
|
isStart=`ps aux|grep 'gunicorn -c setting.py app:app'|grep -v grep|awk '{print $2}'`
|
||||||
if [ "$isStart" == '' ];then
|
if [ "$isStart" == '' ];then
|
||||||
echo -e "\033[31mfailed\033[0m"
|
echo -e "\033[31mfailed\033[0m"
|
||||||
|
|||||||
Reference in New Issue
Block a user