From 35b1df01db7183aa0c871f7796cbb516f4346c9d Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 10 Apr 2022 14:56:01 +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 5bed3ab73..a0e0dd63c 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -40,7 +40,7 @@ mw_start(){ isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'` if [ "$isStart" == '' ];then echo -e "Starting mw... \c" - cd $mw_path && daemon "gunicorn -c setting.py app:app" + cd $mw_path && gunicorn -c setting.py app:app port=$(cat ${mw_path}/data/port.pl) isStart="" while [[ "$isStart" == "" ]];