#!/bin/bash
-# Copyright 2016 ZTE Corporation.
+# Copyright 2016-2017 ZTE Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-sip=127.0.0.1
-nohup python manage.py runserver $sip:8410 > /dev/null &
+
+logDir="/var/log/onap/vfc/ztevnfmdriver/"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
+
+nohup python manage.py runserver 0.0.0.0:8410 > /dev/null &
+
+while [ ! -f $logDir/runtime_ztevnfmdriver.log ]; do
+ sleep 1
+done
+
+tail -F $logDir/runtime_ztevnfmdriver.log