#!/bin/bash
# GUI + Daemon 守护进程 - 30秒轮询
KEEP_SCRIPT="/Users/huangnaicheng/Documents/trae_projects/openclaw/projects/gold_autotrade/keep_alive.sh"
LOG="/Users/huangnaicheng/Documents/trae_projects/openclaw/projects/gold_autotrade/logs/keepalive.log"
while true; do
    bash "$KEEP_SCRIPT" >> "$LOG" 2>&1
    sleep 30 &
    wait $!
done
