#!/bin/sh
exec 2>&1

# Add $ARGS for more arguments to blackbox_exporter
# $CONF_FILE is the location of the configuration file.

[ -f ./conf ] && . ./conf || exit 1;
[ -z "$CONF_FILE" ] && exit 2;

: ${USER:=_bbox_exporter}

exec chpst -u $USER blackbox_exporter --config.file "${CONF_FILE}" ${ARGS}
