From: ying.yunlong Date: Tue, 27 Mar 2018 02:18:51 +0000 (+0800) Subject: Add vfc-ztevnfmdriver logDig check X-Git-Tag: v1.1.0~55^2~1 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F38769%2F1;p=vfc%2Fnfvo%2Fdriver%2Fvnfm%2Fsvnfm.git Add vfc-ztevnfmdriver logDig check Change-Id: I14edf0aa42f70345870556f69de697eb2b345d51 Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- diff --git a/zte/vmanager/run.sh b/zte/vmanager/run.sh index 111e9fc3..5c6e8339 100755 --- a/zte/vmanager/run.sh +++ b/zte/vmanager/run.sh @@ -12,4 +12,16 @@ # 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. + +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