mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Get empty array when no .pid file exists
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user