#!/bin/bash

cmd="prediction/metrics/server/metrics_server_main ${@}"

echo "Executing command '${cmd}'"
until ${cmd}; do
  echo "Server crashed with exit code ${?}.  Respawning \n ${cmd} \n.." >&2
  sleep 1
done
