diff options
author | liangke <lokyse@163.com> | 2018-03-05 14:31:22 +0800 |
---|---|---|
committer | liangke <lokyse@163.com> | 2018-03-05 14:41:37 +0800 |
commit | 7a3e0ef783715080e57d9281d0844c438b589fdf (patch) | |
tree | d2b54ac578fad5c5aef44bf21333420da4a3c2f6 /vio/run.sh | |
parent | c1d77aefc384025f908494a2843000b7f41e8a4b (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-x | vio/run.sh | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |