Get empty array when no .pid file exists

This commit is contained in:
Athanasios Voutsadakis
2018-02-28 14:36:40 +00:00
parent 1adee47230
commit 7d562f9e85

View File

@@ -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 {