summaryrefslogtreecommitdiffstats
path: root/vio/run.sh
diff options
context:
space:
mode:
authorliangke <lokyse@163.com>2018-03-05 14:31:22 +0800
committerliangke <lokyse@163.com>2018-03-05 14:41:37 +0800
commit7a3e0ef783715080e57d9281d0844c438b589fdf (patch)
treed2b54ac578fad5c5aef44bf21333420da4a3c2f6 /vio/run.sh
parentc1d77aefc384025f908494a2843000b7f41e8a4b (diff)
Update the log setting of VIO
Change-Id: I2efb581a4cbe238f03aa91437da7590c7a9ef2ac Issue-ID: MULTICLOUD-151 Signed-off-by: liangke <lokyse@163.com>
Diffstat (limited to 'vio/run.sh')
-rwxr-xr-xvio/run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/vio/run.sh b/vio/run.sh
index 0c767aa..168ce4d 100755
--- a/vio/run.sh
+++ b/vio/run.sh
@@ -23,8 +23,12 @@ sed -i "s/AAI_PASSWORD =.*/AAI_PASSWORD = \"${AAI_PASSWORD}\"/g" vio/pub/config/
nohup python manage.py runserver 0.0.0.0:9004 2>&1 &
-while [ ! -f logs/runtime_vio.log ]; do
+logDir="/var/log/onap/multicloiud/vio"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
+while [ ! -f $logDir/vio.log ]; do
sleep 1
done
-tail -F logs/runtime_vio.log
+tail -F $logDir/vio.log