summaryrefslogtreecommitdiffstats
path: root/zte/vmanager
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-03-27 10:18:51 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-03-27 10:18:51 +0800
commitd53ba062abbed3ec2dd3c3a16681c5f568b01c37 (patch)
treee39cf43e53ff28c0caf08e90d20d69144ba13f8a /zte/vmanager
parent5a49fdb031599b96e48c7bcb540e973292114365 (diff)
Add vfc-ztevnfmdriver logDig check
Change-Id: I14edf0aa42f70345870556f69de697eb2b345d51 Issue-ID: VFC-839 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
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