From: ying.yunlong Date: Tue, 27 Mar 2018 03:11:05 +0000 (+0800) Subject: Add vfc-catalog logDir check X-Git-Tag: v1.1.0~28 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F89%2F38789%2F1;p=vfc%2Fnfvo%2Fcatalog.git Add vfc-catalog logDir check Change-Id: I1aa6d7b9f38abe8f54b86612898f1d86d1c4acb8 Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- diff --git a/run.sh b/run.sh index c96b7a73..8623a421 100755 --- a/run.sh +++ b/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/catalog/" +if [ ! -x $logDir ]; then + mkdir -p $logDir +fi + nohup python manage.py runserver 0.0.0.0:8806 > /dev/null & + +while [ ! -f $logDir/runtime_catalog.log ]; do + sleep 1 +done + +tail -F $logDir/runtime_catalog.log \ No newline at end of file