X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=run.sh;h=2eea401faf6a23ce39f55048de49bd9453f7726b;hb=79dcd9221c739f6457887177d3c088319797eb6e;hp=e94f1bbaa91b4a004bfc19195e114ee94863f983;hpb=bcf49a37cdf5da54fba35e65bdffb9d95babfc4c;p=vfc%2Fnfvo%2Flcm.git diff --git a/run.sh b/run.sh old mode 100644 new mode 100755 index e94f1bba..2eea401f --- a/run.sh +++ b/run.sh @@ -12,5 +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. -sip=127.0.0.1 -nohup python manage.py runserver $sip:8403 > /dev/null & + +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