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