diff --git a/.console/log.md b/.console/log.md index a6f7e59e..5eaf2d10 100644 --- a/.console/log.md +++ b/.console/log.md @@ -1,5 +1,9 @@ # Log +## 2026-05-21 — Add loop-log to operations-center.sh + +Added loop-log subcommand (tail -f loop_controller.log). Mirrors vf.sh loop-log. + ## 2026-05-21 — Add loop-start/stop/status to operations-center.sh Added loop_start, loop_stop, loop_status functions and case entries to diff --git a/scripts/operations-center.sh b/scripts/operations-center.sh index 19730307..24640001 100755 --- a/scripts/operations-center.sh +++ b/scripts/operations-center.sh @@ -163,6 +163,7 @@ Usage: scripts/operations-center.sh loop-start scripts/operations-center.sh loop-stop scripts/operations-center.sh loop-status + scripts/operations-center.sh loop-log Environment: OPERATIONS_CENTER_CONFIG Override config path (default: ${CONFIG_PATH}) @@ -255,6 +256,10 @@ loop_status() { python3 "${ROOT_DIR}/tools/loop/controller.py" --status } +loop_log() { + tail -f "${LOOP_LOG}" +} + watch_pid_file() { local role="$1" echo "${WATCH_DIR}/${role}.pid" @@ -584,7 +589,7 @@ shift || true cd "${ROOT_DIR}" # Skip janitor for read-only / stop commands — they're fast and don't need it. case "${cmd}" in - watch-all-status|dev-status|watch-all-stop|watch-stop|watchdog-stop|plane-status|providers-status|doctor|status|loop-start|loop-stop|loop-status) ;; + watch-all-status|dev-status|watch-all-stop|watch-stop|watchdog-stop|plane-status|providers-status|doctor|status|loop-start|loop-stop|loop-status|loop-log) ;; *) run_janitor ;; esac @@ -909,6 +914,9 @@ PYEOF loop-status) loop_status ;; + loop-log) + loop_log + ;; *) usage exit 1