From: ying.yunlong Date: Mon, 26 Mar 2018 00:58:26 +0000 (+0800) Subject: Add vfc-vnfres logDir check X-Git-Tag: v1.1.0~6 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F38323%2F1;p=vfc%2Fgvnfm%2Fvnfres.git Add vfc-vnfres logDir check Change-Id: I05265f7e4dc8e649d23862a048d2a5e154b10481 Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- diff --git a/res/run.sh b/res/run.sh index d7f285e..aa15904 100755 --- a/res/run.sh +++ b/res/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-vnfres/" +if [ ! -x $logDir ]; then + mkdir -p $logDir +fi + nohup python manage.py runserver 0.0.0.0:8802 > /dev/null & + +while [ ! -f $logDir/runtime_res.log ]; do + sleep 1 +done + +tail -F $logDir/runtime_res.log