Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .console/log.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 9 additions & 1 deletion scripts/operations-center.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -909,6 +914,9 @@ PYEOF
loop-status)
loop_status
;;
loop-log)
loop_log
;;
*)
usage
exit 1
Expand Down
Loading