Add vfc-gvnfmdriver logDir check 19/38019/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 23 Mar 2018 09:15:43 +0000 (17:15 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Fri, 23 Mar 2018 09:15:43 +0000 (17:15 +0800)
Change-Id: Ib8885c319cb82881a19391a643430cbd3e1df491
Issue-ID: VFC-839
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
gvnfmadapter/run.sh

index 49b574e..062c08f 100755 (executable)
 # 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