--- /dev/null
+#!/usr/bin/env bash
+
+mktempfifo() {
+ name="$(mktemp -u)"
+ mkfifo "$name" || mktempfifo
+}
+
+if test -z $1 || test -z $2 || ! test -z $3; then
+ echo >&2 "Usage: $0 <service> <passphrase>"
+ exit 1
+fi
+
+service="$1"
+passphrase="$2"
+
+echo >&2 "Running $service on port $passphrase-git-$service."
+
+mktempfifo
+while < "$name" gnunet-cadet -o "$passphrase-git-$service" | git "$service" . > "$name"; test 130 != "$?"; do
+ rm "$name"
+ mktempfifo
+done
+
+rm $name
+
+echo >&2 "Terminating $service on port $passphrase-$service."