Merge "Add vfc-ztevnfmdriver logDig check"
authorYan Yang <yangyanyj@chinamobile.com>
Tue, 27 Mar 2018 03:14:09 +0000 (03:14 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 27 Mar 2018 03:14:09 +0000 (03:14 +0000)
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