#!/usr/bin/env bash # vol_live 모니터 HTTP 서버 — 8766 미수신 시 기동 (cron/수동) set -euo pipefail # shellcheck source=scripts/_cron_env.sh source "$(dirname "$0")/_cron_env.sh" PORT="${VOL_MONITOR_PORT:-8766}" export VOL_MONITOR_PORT="$PORT" if curl -sf -o /dev/null --connect-timeout 2 "http://127.0.0.1:${PORT}/vol_live_monitor.html"; then exit 0 fi exec bash "${CRON_PROJECT_ROOT}/scripts/3_run_vol_monitor_serve.sh"