#!/usr/bin/env /lib/runit/invoke-run
#Copyright: 2022 Lorenzo Puliti <plorenzo@disroot.org>
#License: CC0-1.0

sv start default-syslog ||  true

if [ ! -d /run/gdomap ]; then
        install -d -m 0755 /run/gdomap
fi

exec 2>&1
if [ -e /etc/runit/verbose ]; then
	echo "invoke-run: starting ${PWD##*/}"
fi
exec /usr/bin/gdomap  -f $GDOMAP_ARGS
