#!/usr/bin/execlineb -P
# gdomap in foreground (-f), matching debian/sv/gdomap.

envfile -I /etc/default/gdomap
importas -sCuD "-p -c /etc/GNUstep/gdomap_probes -j /var/run/gdomap" GDOMAP_ARGS GDOMAP_ARGS
envfile -I /etc/s6-rc/config/gdomap.conf
importas -sCuD "-f" Args Args

foreground { install -d -m 0755 /run/gdomap }

fdmove -c 2 1
exec /usr/bin/gdomap ${Args} ${GDOMAP_ARGS}
