| set -euo pipefail | |
| DBOPS_ROOT=${DBOPS_ROOT:-/data/adaptai/platform/dbops} | |
| echo "[preflight] DBOPS_ROOT=$DBOPS_ROOT" | |
| echo "[preflight] Symlinks" | |
| ls -l "$DBOPS_ROOT/data" "$DBOPS_ROOT/logs" || true | |
| echo "[preflight] Disk space" | |
| df -h "$DBOPS_ROOT" | sed -n '1,2p' | |
| echo "[preflight] Binaries" | |
| for b in qdrant/qdrant dragonfly/dragonfly-x86_64 redis/redis-server java/jre11/bin/java; do | |
| test -e "$DBOPS_ROOT/binaries/$b" && echo "ok: $b" || echo "missing: $b" | |
| done | |
| echo "[preflight] Open ports" | |
| ss -tlnp | egrep ':17000|:1800[0-2]|:1801[0-2]|:17542' || true | |
| echo "[preflight] Log rotation (supervisor)" | |
| grep -H "logfile_maxbytes" -n "$DBOPS_ROOT"/supervisor/conf.d/*.conf | sed -n '1,200p' || true | |
| echo "[preflight] done" | |
| exit 0 | |