Files
mtusi2026lab3/scripts/restart.sh
T

11 lines
446 B
Bash
Executable File

#!/bin/sh
# Restart hook of `make test-persistence` (tests/resilience.py): stops the
# balancer, every API replica, PostgreSQL and Valkey gracefully and starts the
# same containers again (the one-shot migrate finds nothing to apply).
# Volumes and data are kept and nothing is re-seeded. The test hides the
# output, so failures surface through the exit code only.
set -eu
cd "$(dirname "$0")/.."
docker compose stop
docker compose up -d --wait