Add vfc-ztevnfmdriver logDig check 69/38769/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Tue, 27 Mar 2018 02:18:51 +0000 (10:18 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Tue, 27 Mar 2018 02:18:51 +0000 (10:18 +0800)
Change-Id: I14edf0aa42f70345870556f69de697eb2b345d51
Issue-ID: VFC-839
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
zte/vmanager/run.sh

index 111e9fc..5c6e833 100755 (executable)
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
+
+logDir="/var/log/onap/vfc/ztevnfmdriver/"
+if [ ! -x  $logDir  ]; then
+       mkdir -p $logDir
+fi
+
 nohup python manage.py runserver 0.0.0.0:8410 > /dev/null &
+
+while [ ! -f $logDir/runtime_ztevnfmdriver.log ]; do
+    sleep 1
+done
+
+tail -F  $logDir/runtime_ztevnfmdriver.log