interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / evidence / CAND3-AUDIT-20261006 / runners / start_window.sh

13 lines · 915 bytes Raw Blame History
1#!/bin/bash
2# Waits (never interrupts) until no qemu runs, 1-min load < 1.5 and no quiet hold; then runs the declared window once.
3cd /home/drakestapleton/workspace/cand3-campaign/cand3 || exit 2
4log=window-start-w2.log
5while :; do
6 q=$(pgrep -c qemu-system); l=$(cut -d' ' -f1 /proc/loadavg)
7 if [ "$q" = 0 ] && awk "BEGIN{exit !($l<1.5)}" && quietlock check >/dev/null 2>&1; then break; fi
8 echo "$(date -u +%FT%TZ) waiting qemu=$q load1=$l" >> $log; sleep 60
9done
10./cand3_setup_trees.sh >> $log 2>&1 || { echo "$(date -u +%FT%TZ) setup check FAILED: window not started" >> $log; exit 3; }
11echo "$(date -u +%FT%TZ) starting window load1=$(cut -d' ' -f1 /proc/loadavg)" >> $log
12quietlock hold --owner cand3-campaign --minutes 90 --reason "CAND-3 declared window W2, DECLARED-ATTEMPTS-w2 sha256 ef42d9c8" -- env WINDOW_TAG=w2 ./run_window.sh > window-w2.out 2>&1
13echo "$(date -u +%FT%TZ) window exit $?" >> $log