AO3 Mirror v4 — initial commit
Cookie-aware proxy pool with CF challenge solving - Tiered proxy pool (fast 50 + main 676) - Per-proxy cf_clearance cookie persistence - CF challenge detection + user-browser solving - Safari + Chrome TLS fingerprint rotation - Async FastAPI backend with LRU cache - Passive daemon with systemd supervision - Stats dashboard + Prometheus metrics
This commit is contained in:
23
stop.sh
Executable file
23
stop.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
# AO3 Mirror - 停止脚本
|
||||
|
||||
PID_DIR="/dev/shm/ao3"
|
||||
|
||||
echo "[Shutdown] Stopping AO3 Mirror workers..."
|
||||
|
||||
# Kill all workers
|
||||
for pid_file in "$PID_DIR"/worker-*.pid; do
|
||||
if [ -f "$pid_file" ]; then
|
||||
pid=$(cat "$pid_file")
|
||||
kill "$pid" 2>/dev/null || true
|
||||
rm -f "$pid_file"
|
||||
echo "[Shutdown] Killed PID $pid"
|
||||
fi
|
||||
done
|
||||
|
||||
# Force kill remaining processes on worker ports
|
||||
for port in 8081 8082 8083 8084; do
|
||||
fuser -k "${port}/tcp" 2>/dev/null || true
|
||||
done
|
||||
|
||||
echo "[Shutdown] All workers stopped"
|
||||
Reference in New Issue
Block a user