diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-27 11:11:05 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-03-27 11:11:05 +0800 |
commit | 7cec30aba0da2be7e9b9920ccae923aad0b69bce (patch) | |
tree | 2fcaa97652d28bb7c49c9b11b922c38458379f05 | |
parent | fc4c8ef0690875fa78129fd5ba89304be831d427 (diff) |
Add vfc-catalog logDir check
Change-Id: I1aa6d7b9f38abe8f54b86612898f1d86d1c4acb8
Issue-ID: VFC-839
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
-rwxr-xr-x | run.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -13,4 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. +logDir="/var/log/onap/vfc/catalog/" +if [ ! -x $logDir ]; then + mkdir -p $logDir +fi + nohup python manage.py runserver 0.0.0.0:8806 > /dev/null & + +while [ ! -f $logDir/runtime_catalog.log ]; do + sleep 1 +done + +tail -F $logDir/runtime_catalog.log
\ No newline at end of file |