mirror of
https://github.com/GSA/notifications-api.git
synced 2026-05-06 00:59:41 -04: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 {
|
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 {
|
function start_application {
|
||||||
|
|||||||
Reference in New Issue
Block a user