summaryrefslogtreecommitdiffstats
path: root/windriver/run.sh
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-08 14:39:55 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-08 14:39:55 +0800
commit2dce2e514f236316b185608989c297e9720a228a (patch)
treedef222311bb480fce66a5d8ded818bd51dc60a70 /windriver/run.sh
parentc701ab185721e50cca3d432220361aaa723358cc (diff)
Change the log filepath
As required by logging project Change-Id: I93f8cca6c5b5c9b90d889a3ab2a310af98b8200a Issue-ID: MULTICLOUD-178 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'windriver/run.sh')
-rw-r--r--windriver/run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/windriver/run.sh b/windriver/run.sh
index 6efd9b3a..05413d26 100644
--- a/windriver/run.sh
+++ b/windriver/run.sh
@@ -17,10 +17,14 @@ 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:9005 2>&1 &
-while [ ! -f logs/runtime_titanium_cloud.log ]; do
+logDir="/var/log/onap/multicloud/openstack/windriver"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
+while [ ! -f $logDir/titanium_cloud.log ]; do
sleep 1
done
-tail -F logs/runtime_titanium_cloud.log
+tail -F $logDir/titanium_cloud.log