summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-03-27 11:53:01 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-03-27 11:53:01 +0800
commita59c264ba44362894271f859d7c816436df79bb5 (patch)
tree94b40b5bfa2ab73fecdafacb619644fa49bb269f
parent71dd1a02940c70bb669f2dbcac2dcfe2e14546e0 (diff)
Add vfc-nslcm logDir check
Change-Id: I731ac0a01d5a5b840c3acedf9a3894549bacbfcb Issue-ID: VFC-839 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rwxr-xr-xrun.sh12
1 files changed, 12 insertions, 0 deletions
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