diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-23 17:15:43 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-23 17:15:43 +0800 |
commit | 3e6d86ad43b27f431a5c1e97837c3752b464d01a (patch) | |
tree | 2c6085ec44839db0e7f3071afe0af18c842a7e8f /gvnfmadapter/run.sh | |
parent | 3f526dee873a85c4194876ca78fa39128e3f02a1 (diff) |
Add vfc-gvnfmdriver logDir check
Change-Id: Ib8885c319cb82881a19391a643430cbd3e1df491
Issue-ID: VFC-839
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'gvnfmadapter/run.sh')
-rwxr-xr-x | gvnfmadapter/run.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gvnfmadapter/run.sh b/gvnfmadapter/run.sh index 49b574e..062c08f 100755 --- a/gvnfmadapter/run.sh +++ b/gvnfmadapter/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-gvnfmdriver/" +if [ ! -x $logDir ]; then + mkdir -p $logDir +fi + nohup python manage.py runserver 0.0.0.0:8484 > /dev/null & + +while [ ! -f $logDir/runtime_gvnfmdriver.log ]; do + sleep 1 +done + +tail -F $logDir/runtime_gvnfmdriver.log |