tracker
All repositories: gitoria
1.6 KB
#!/bin/bash# realdata-m026.sh <start|stop> <copy> <port> [env…] — mission 026 (tracker#31, duplicate titles), NOT the gate. Starts this tree on a# COPY of live `storage/` (<copy>/storage, STATUS "How to repeat") with every TMDB job off (sync, backfill, repair, kinds, credits,# collections) — only the duplicate merge runs (TRACKER_MERGE=0 in [env…] switches it off for the "before" pages). Writes a# session for the creator (az5b2 = user 0mujqspn0aqb) → <copy>/sid; log <copy>/server.log; stop kills the PID in <copy>/server.pid.mode=$1; R=$2; port=$3; shift 3if [ "$mode" = stop ]; then pid=$(cat $R/server.pid); kill $pid; while kill -0 $pid 2>/dev/null; do sleep 1; done; echo "stopped $pid"; exit 0; fitree=$(cd "$(dirname "$0")/.." && pwd)mkdir -p $R/sessionssid=$(head -c 16 /dev/urandom | xxd -p); now=$(date +%s%3N)echo "{\"created\":$now,\"data\":{\"tag\":\"t\"},\"id\":\"$sid\",\"seen\":$now,\"user\":{\"id\":\"0mujqspn0aqb\"}}" > $R/sessions/$(printf %s "$sid" | sha256sum | cut -d' ' -f1)echo $sid > $R/sidcd $treeenv TRACKER_SYNC=0 TRACKER_ART=0 TRACKER_PHOTOS=0 TRACKER_BACKFILL=0 TRACKER_REPAIR=0 TRACKER_KINDS=0 TRACKER_CREDITS=0 TRACKER_COLLECTIONS=0 "$@" \TRACKER_PORT=$port TRACKER_URL=http://127.0.0.1:$port HL_HOST=127.0.0.1 TRACKER_WATCH=0 \TRACKER_STORAGE=$R/storage/mpackdb TRACKER_SESSIONS=$R/sessions/ TRACKER_OLD_SHORT_IDS=$tree/data/old-short-ids.json \setsid ./bin/hybriel project.hl >> $R/server.log 2>&1 < /dev/null &pid=$!; echo $pid > $R/server.pidt0=$(date +%s)until curl -s -o /dev/null http://127.0.0.1:$port/; do sleep 1; kill -0 $pid 2>/dev/null || { echo "server died"; tail -20 $R/server.log; exit 1; }; doneecho "pid $pid listening after $(( $(date +%s) - t0 )) s"
Branches
Latest commits
- 833aee2flog: #50 closed, HM56 startedmre
- ac58c1e5mission: HM56mre
- 58979c0clog: HM54 held for decision, DP65 startedmre
- bb2ebc67log: #64 live, #53 mergedmre
- 27cde42fMerge hm53-dom: tracker#53 inputs bound to membersmre
- 2156cc7flog: HM54 reviewmre
- 9fb82efclog: HM54 gap, fill continuesmre
- b632eb8dlog: HM53 done, HM54 startedmre
- ccb1a263tracker#53: bind editor drafts and use key event focus targetmre
- 3356fcfclog: #52 blocked, HM53 startedmre
- 833dcfc9Merge hm52-search: report only, tracker#52 blocked by framework gapmre
- 73010cc0HM52: report replace-navigation search draft regressionmre
- 1742e92bstatus: DP64 and HM52 runningmre
- 29ad5b58log: #64 merged, DP64 and HM52 startedmre
- fafddbf9Merge hm64-catalog: tracker#64 catalog from packed entriesmre
- b2e2206dlog: #63 livemre
- 5831e0e0log: HM64 donemre
- 4042b923Flatten catalog membership rows into paired slotsmre
- ea8a759elog: #61 #62 live, DP63 and HM64 startedmre
- 40439456Merge hm63-searchtext: tracker#63 packed search textmre