From: ying.yunlong Date: Fri, 23 Mar 2018 09:12:37 +0000 (+0800) Subject: Add vfc-vnfmgr logDir check X-Git-Tag: v1.1.0~6 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=5f61a35e401327dadd93af35da18636ff8eea8dd;p=vfc%2Fgvnfm%2Fvnfmgr.git Add vfc-vnfmgr logDir check Change-Id: I247a1b2bab35bca35950172f41f47a5fe8040aa8 Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- diff --git a/mgr/run.sh b/mgr/run.sh index 38132cd..77f19fb 100755 --- a/mgr/run.sh +++ b/mgr/run.sh @@ -13,4 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. +logDir="/var/log/onap/vfc-gvnfm-vnfmgr/" +if [ ! -x $logDir ]; then + mkdir -p $logDir +fi + nohup python manage.py runserver 0.0.0.0:8803 > /dev/null & + +while [ ! -f $logDir/runtime_mgr.log ]; do + sleep 1 +done + +tail -F $logDir/runtime_mgr.log