summaryrefslogtreecommitdiffstats
path: root/zte/vmanager
diff options
context:
space:
mode:
authorYan Yang <yangyanyj@chinamobile.com>2018-03-27 03:14:09 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-27 03:14:09 +0000
commit468dc5c8fce485004afc84ba425f949c0d8e7f0f (patch)
treebab58237f5fe63adbd9a30ca0c526b596700dbfd /zte/vmanager
parentfa7c6dc4478fd8d2b1a84141f522f7e06ff4747e (diff)
parentd53ba062abbed3ec2dd3c3a16681c5f568b01c37 (diff)
Merge "Add vfc-ztevnfmdriver logDig check"
Diffstat (limited to 'zte/vmanager')
-rwxr-xr-xzte/vmanager/run.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/zte/vmanager/run.sh b/zte/vmanager/run.sh
index 111e9fc3..5c6e8339 100755
--- a/zte/vmanager/run.sh
+++ b/zte/vmanager/run.sh
@@ -12,4 +12,16 @@
# 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