#!/usr/bin/env /lib/runit/invoke-run

set -e

. /etc/ark/monitor-config

# logging only captures stdout, so merge stderr in with it
exec 2>&1

echo "Starting ark-uploader..."
exec chpst -u ark /usr/bin/ark-uploader --monitor "$ARK_MONITOR"
