#!/bin/bash # run-blob-wanter.sh # Same shape as run-server.sh / run-ssb-viewer.sh: keep it alive, and let the # process exit cleanly when its sbot connection dies. # # Restarting on sbot loss is not just tolerated here, it is REQUIRED: sbot's # want map is in-memory and is wiped on every sbot restart. Coming back up # re-runs the backfill and re-arms every standing want. while true; do NODE_OPTIONS="--dns-result-order=ipv4first --max-old-space-size=128" ./blob-wanter.js echo "Restarting blob-wanter at $(date)" sleep 5 done