remove swagger test function
[vfc/nfvo/lcm.git] / run.sh
diff --git a/run.sh b/run.sh
index e94f1bb..2eea401 100755 (executable)
--- a/run.sh
+++ b/run.sh
 # 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