#!/bin/bash # The embed worker, run by launchd. Sources the credential from one place rather than embedding it in a # plist, and drains the queue until dry then exits. launchd starts it again on its interval, so a node # that was busy or asleep simply picks the work up on the next tick. set -a . "$HOME/.missionmatch-corpus.env" set +a exec "$HOME/bin/corpus-harvest" -role embed