diff --git a/scripts/run_multi_worker_app_paas.sh b/scripts/run_multi_worker_app_paas.sh index 3b716a505..0f9ea3459 100755 --- a/scripts/run_multi_worker_app_paas.sh +++ b/scripts/run_multi_worker_app_paas.sh @@ -77,7 +77,11 @@ function on_exit { } function get_celery_pids { - APP_PIDS=`cat celery*.pid` + if [[ $(ls /home/vcap/app/celery*.pid) ]]; then + APP_PIDS=`cat /home/vcap/app/celery*.pid` + else + APP_PIDS=() + fi } function start_application {