summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-03-23 17:12:37 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-03-23 17:12:37 +0800
commit5f61a35e401327dadd93af35da18636ff8eea8dd (patch)
tree802d9f6629510715de7f32214c40d51ea00c8672
parent091bf532af44c16d4b21f149f5b0d3a76f70a48c (diff)
Add vfc-vnfmgr logDir check
Change-Id: I247a1b2bab35bca35950172f41f47a5fe8040aa8 Issue-ID: VFC-839 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rwxr-xr-xmgr/run.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/mgr/run.sh b/mgr/run.sh
index 38132cd..77f19fb 100755
--- a/mgr/run.sh
+++ b/mgr/run.sh
@@ -13,4 +13,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+logDir="/var/log/onap/vfc-gvnfm-vnfmgr/"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
+
nohup python manage.py runserver 0.0.0.0:8803 > /dev/null &
+
+while [ ! -f $logDir/runtime_mgr.log ]; do
+ sleep 1
+done
+
+tail -F $logDir/runtime_mgr.log