diff options
author | 2018-03-23 17:12:37 +0800 | |
---|---|---|
committer | 2018-03-23 17:12:37 +0800 | |
commit | 5f61a35e401327dadd93af35da18636ff8eea8dd (patch) | |
tree | 802d9f6629510715de7f32214c40d51ea00c8672 /mgr | |
parent | 091bf532af44c16d4b21f149f5b0d3a76f70a48c (diff) |
Add vfc-vnfmgr logDir check
Change-Id: I247a1b2bab35bca35950172f41f47a5fe8040aa8
Issue-ID: VFC-839
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'mgr')
-rwxr-xr-x | mgr/run.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |