Add vfc-vnfmgr logDir check 15/38015/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 23 Mar 2018 09:12:37 +0000 (17:12 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Fri, 23 Mar 2018 09:12:37 +0000 (17:12 +0800)
Change-Id: I247a1b2bab35bca35950172f41f47a5fe8040aa8
Issue-ID: VFC-839
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
mgr/run.sh

index 38132cd..77f19fb 100755 (executable)
 # 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