#!/bin/sh # Root, on the VM, after the peer records are written: one `atirc mesh run` per node (the agent's and yours, # both carrying your channel and the agent's own) and `atirc agent run` for the agent; your node also listens on # 127.0.0.1:LISTEN for your page (the contract's "atirc" WebRTC tunnel). KEY=value lines on stdin. set -eu while IFS='=' read -r k v; do case "$k" in NICK | YOU | HANDLE | CHANNELS | PEERS | LISTEN) eval "$k=\$v" ;; esac done args="" for c in $CHANNELS; do args="$args -c $c"; done for p in $PEERS; do args="$args --peer $p"; done unit() { cat >"/etc/systemd/system/$1.service" <