summaryrefslogtreecommitdiffstats
path: root/ocata/run.sh
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-09 10:04:54 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-09 10:04:54 +0800
commitb3a1192df1c3d87abf6fad172915877447290e91 (patch)
treecf8e1e4fd72fd2b555f75e56536108158bbe5bd0 /ocata/run.sh
parent2dce2e514f236316b185608989c297e9720a228a (diff)
Change the log filepath of Ocata
As required by logging project Change-Id: Ie19af29f68d5d482e65c7d0d488d8e4e885c2b5b Issue-ID: MULTICLOUD-178 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'ocata/run.sh')
-rw-r--r--ocata/run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/ocata/run.sh b/ocata/run.sh
index a4edae47..f1bcfa9a 100644
--- a/ocata/run.sh
+++ b/ocata/run.sh
@@ -17,9 +17,13 @@ memcached -d -m 2048 -u root -c 1024 -p 11211 -P /tmp/memcached1.pid
export PYTHONPATH=lib/share
nohup python manage.py runserver 0.0.0.0:9006 2>&1 &
-while [ ! -f logs/runtime_ocata.log ]; do
+logDir="/var/log/onap/multicloud/openstack/ocata"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
+while [ ! -f $logDir/ocata.log ]; do
sleep 1
done
-tail -F logs/runtime_ocata.log
+tail -F $logDir/ocata.log