redis-create.sh: run `exec` on the last line (#6254)

Previously, when shutting down a `docker-compose` stack,
bredis_clusterer would take 10s to shut down. This decreases the time to
0.4s.

I believe this is because docker-compose was killing `bash` and waiting
for its children to die (they weren't), then hitting a timeout and hard
killing the container. Now, since `exec` replaces the current pid,
docker-compose can kill redis-server directly.
This commit is contained in:
Jacob Hoffman-Andrews 2022-07-26 13:19:50 -07:00 committed by GitHub
parent d55fc7e001
commit 2e64736e45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,4 +27,4 @@ fi
# The Boulder container will wait for this port on this container to be
# available before starting up.
echo "Starting a server so everything knows we're done."
redis-server /test/redis.config
exec redis-server /test/redis.config