#!/bin/bash
set -ex

# This script file starts up a MoaT-KV any-node runner.

if test $# = 1 ; then
    exec moat.kv -c /etc/moat.kv.cfg client job -n - -g "$1" run
else
    exec moat.kv -c /etc/moat.kv.cfg client job -n - run
fi
