Files
mtusi2026lab7/scripts/restart.sh
T
ALMiron 912a874f00
Skeleton contracts / contracts (pull_request) Blocked by required conditions
lab 7 openbao
2026-11-23 14:39:13 +03:00

10 lines
486 B
Bash

#!/bin/sh
# Restart hook (tests/resilience.py --mode persistence): restarts ALL stores with their volumes (nothing is removed), then re-unseals OpenBao,
# refreshes the 24 h SecretIDs and restarts the services that fetch secrets.
set -eu
cd "$(dirname "$0")/.."
docker compose restart postgres redis s3 kafka openbao prometheus loki tempo
sh scripts/bao_unseal.sh
sh scripts/bao_secret_id.sh all >/dev/null
docker compose restart api dispatcher worker s3_sweeper otel-collector grafana