From 5f61a35e401327dadd93af35da18636ff8eea8dd Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Fri, 23 Mar 2018 17:12:37 +0800 Subject: [PATCH] Add vfc-vnfmgr logDir check Change-Id: I247a1b2bab35bca35950172f41f47a5fe8040aa8 Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- mgr/run.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.16.6