Download scripts/stop.sh from ShoaibSSM/a100-qwen-api-runtime: direct link, hf CLI and curl.
- Browser
- Download file 309 Bytes
-
https://huggingface.co/ShoaibSSM/a100-qwen-api-runtime/resolve/main/scripts/stop.sh
- Command line
-
hf download hf://ShoaibSSM/a100-qwen-api-runtime/scripts/stop.sh
-
curl -L -o stop.sh https://huggingface.co/ShoaibSSM/a100-qwen-api-runtime/resolve/main/scripts/stop.sh
309 Bytes
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| PID_FILE="$ROOT/runtime/server.pid" | |
| [[ -f "$PID_FILE" ]] || { echo 'No PID file.'; exit 0; } | |
| PID="$(cat "$PID_FILE")" | |
| if kill -0 "$PID" 2>/dev/null; then | |
| kill "$PID" | |
| echo "Stopped PID $PID" | |
| fi | |
| rm -f "$PID_FILE" | |