Skip to content

Commit

Permalink
ignore cases where we have removed apps
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Nov 2, 2023
1 parent aee29ff commit 0b7944b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/app_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ for deployment in $old_deployments; do
if [[ ! $deployment == $DEPLOYMENT_ID ]]; then
echo "Signalling application processes from $deployment"

STATUS=`supervisorctl status $APP_NAME-$deployment:*`
STATUS=`supervisorctl status $APP_NAME-$deployment:* || true`
if [[ $STATUS == *"RUNNING"* ]]; then
supervisorctl signal TERM $APP_NAME-$deployment:*
fi
Expand Down

0 comments on commit 0b7944b

Please sign in to comment.