From a59c264ba44362894271f859d7c816436df79bb5 Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Tue, 27 Mar 2018 11:53:01 +0800 Subject: Add vfc-nslcm logDir check Change-Id: I731ac0a01d5a5b840c3acedf9a3894549bacbfcb Issue-ID: VFC-839 Signed-off-by: ying.yunlong --- run.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- cgit 1.2.3-korg