Files
mtusi2026lab3/scripts/stop-one.bat
T

9 lines
255 B
Batchfile

@echo off
REM Stop exactly ONE API replica selected by TARGET_INSTANCE_ID. Leave it stopped.
if "%TARGET_INSTANCE_ID%"=="" (
echo TARGET_INSTANCE_ID not set
exit /b 2
)
cd /d "%~dp0.."
docker compose stop --timeout 5 %TARGET_INSTANCE_ID%
exit /b 0