diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 880e5c9b6..1b6331151 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -45,7 +45,7 @@ mw_start_panel() isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'` if [ "$isStart" == '' ];then echo -e "starting mw-panel... \c" - cd ${PANEL_DIR}/web && gunicorn -c setting.py app:app & + cd ${PANEL_DIR}/web && gunicorn -c setting.py app:app port=$(cat ${PANEL_DIR}/data/port.pl) isStart="" n=0