summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
Diffstat (limited to 'vio')
-rwxr-xr-xvio/docker/instance-config.sh8
-rwxr-xr-xvio/docker/instance-run.sh4
-rwxr-xr-xvio/run.sh8
3 files changed, 13 insertions, 7 deletions
diff --git a/vio/docker/instance-config.sh b/vio/docker/instance-config.sh
index 5623109..3952a03 100755
--- a/vio/docker/instance-config.sh
+++ b/vio/docker/instance-config.sh
@@ -39,4 +39,10 @@ sed -i "s|DB_PORT.*|DB_PORT = $MYSQL_PORT|" vio/vio/pub/config/config.py
cat vio/vio/pub/config/config.py
sed -i "s/sip=.*/sip=$SERVICE_IP/g" vio/run.sh
-sed -i "s/sip=.*/sip=$SERVICE_IP/g" vio/stop.sh \ No newline at end of file
+sed -i "s/sip=.*/sip=$SERVICE_IP/g" vio/stop.sh
+
+# Create log directory
+logDir="/var/log/onap/multicloud/vio"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
diff --git a/vio/docker/instance-run.sh b/vio/docker/instance-run.sh
index 9dabfa2..e5c6ec8 100755
--- a/vio/docker/instance-run.sh
+++ b/vio/docker/instance-run.sh
@@ -16,7 +16,7 @@
cd ./vio
./run.sh
-while [ ! -f logs/runtime_vio.log ]; do
+while [ ! -f /var/log/onap/multicloud/vio/vio.log ]; do
sleep 1
done
-tail -F logs/runtime_vio.log
+tail -F /var/log/onap/multicloud/vio/vio.log
diff --git a/vio/run.sh b/vio/run.sh
index 168ce4d..1c392e4 100755
--- a/vio/run.sh
+++ b/vio/run.sh
@@ -21,12 +21,12 @@ sed -i "s/AAI_SCHEMA_VERSION =.*/AAI_SCHEMA_VERSION = \"${AAI_SCHEMA_VERSION}\"/
sed -i "s/AAI_USERNAME =.*/AAI_USERNAME = \"${AAI_USERNAME}\"/g" vio/pub/config/config.py
sed -i "s/AAI_PASSWORD =.*/AAI_PASSWORD = \"${AAI_PASSWORD}\"/g" vio/pub/config/config.py
+
+
+logDir="/var/log/onap/multicloud/vio"
+
nohup python manage.py runserver 0.0.0.0:9004 2>&1 &
-logDir="/var/log/onap/multicloiud/vio"
-if [ ! -x $logDir ]; then
- mkdir -p $logDir
-fi
while [ ! -f $logDir/vio.log ]; do
sleep 1
done