distccd backed by an icecream cluster (yes, this is probably stupid)

#!/usr/bin/env bash

function kill_daemons() {
        echo "## Shutting down"
        sudo killall -SIGKILL icecc-scheduler
        sudo killall -SIGKILL distccd
}

trap kill_daemons EXIT

sudo icecc-scheduler -vvv &

export PATH=/usr/lib/icecc/bin/:$PATH
/usr/bin/distccd --log-stderr --verbose --no-detach &

while true; do
        sleep 120;
done