summaryrefslogtreecommitdiffstats
path: root/newton/run.sh
diff options
context:
space:
mode:
authorHuang Haibin <haibin.huang@intel.com>2018-03-15 22:02:16 +0800
committerHuang Haibin <haibin.huang@intel.com>2018-03-15 22:16:04 +0800
commit1bf84e64ce12d1e34fe5d72d6fc0411aed20cf26 (patch)
tree9493d02de28074ddbddd8c47e3141cefb0107274 /newton/run.sh
parentdaf87b3a503a6d3ff5e82abf31d5a667d6616b16 (diff)
modify log directory
Change-Id: I119b9018b9f403fb9f6637abe048e99f0f00c0c1 Issue-ID: MULTICLOUD-138 Signed-off-by: Huang Haibin <haibin.huang@intel.com>
Diffstat (limited to 'newton/run.sh')
-rwxr-xr-xnewton/run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/newton/run.sh b/newton/run.sh
index 0e2bee32..43de581f 100755
--- a/newton/run.sh
+++ b/newton/run.sh
@@ -17,8 +17,12 @@ 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:9003 2>&1 &
-while [ ! -f logs/runtime_newton.log ]; do
+logDir="/var/log/onap/multicloud/openstack/newton"
+if [ ! -x $logDir ]; then
+ mkdir -p $logDir
+fi
+while [ ! -f $logDir/newton.log ]; do
sleep 1
done
-tail -F logs/runtime_newton.log
+tail -F $logDir/newton.log