This is a simple client/daemon combination that allows configurable retries & async queueing of post-build-hooks.
Start daemon
go build
rm -f testsock
systemfd -s unix::./testsock -- ./queued-build-hook daemon --hook ./realhook.sh
Run client
go build
./queued-build-hook queue --socket ./testsock