summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-03-26 08:58:26 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-03-26 08:58:26 +0800
commit23e8c07868f7d2b706ef1c5bd8ec87c0aa8964a5 (patch)
tree26e3cb5853750ad56d54ac5215ffe80c0b246e1f
parent3b3bcf80a61245c63670c5b9eddcf5b52230423e (diff)
Add vfc-vnfres logDir check
Change-Id: I05265f7e4dc8e649d23862a048d2a5e154b10481 Issue-ID: VFC-839 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rwxr-xr-xres/run.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/run.sh b/res/run.sh
index d7f285e..aa15904 100755
--- a/res/run.sh
+++ b/res/run.sh
@@ -13,4 +13,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+logDir="/var/log/onap/vfc-gvnfm-vnfres/"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
+
nohup python manage.py runserver 0.0.0.0:8802 > /dev/null &
+
+while [ ! -f $logDir/runtime_res.log ]; do
+ sleep 1
+done
+
+tail -F $logDir/runtime_res.log